How do I set script simulation parameters remotely
-
- Posts: 11
- Joined: 04 Apr 2015, 14:17
How do I set script simulation parameters remotely
I am currently working on a quadcopter project to pick objects with a suction pad. I wish to activate the suction pad but for this, the way I understand it is, to set the script parameter 'active' to true. I cant find a way to do this. Is there another I can go about it ?
-
- Posts: 11
- Joined: 04 Apr 2015, 14:17
Re: How do I set script simulation parameters remotely
I am using MATLAB as the remote client.
Re: How do I set script simulation parameters remotely
I would just tweak the child script to read signals, and then send integer signal via setIntegerSignal("name", value)
-
- Posts: 11
- Joined: 04 Apr 2015, 14:17
Re: How do I set script simulation parameters remotely
Thanks. I just set an integer signal in my remote API code and a get signal in my child script.
-
- Posts: 11
- Joined: 04 Apr 2015, 14:17
Re: How do I set script simulation parameters remotely
I just tried setting the signal. I am unable to activate it. Do I need to add a force sensor or something to make it work.
Re: How do I set script simulation parameters remotely
Make sure the child script is able to read that signal and correctly interpret it. Do you have the correct signal name? What code is intercepting that signal?
Cheers
Cheers
Re: How do I set script simulation parameters remotely
In the Model browser under Other, there is this little tool called Signal Monitor, just drag and drop it over your scene.
Once you run the simulation, it will print all the signal changes, you can debug signals this way very easily.
Once you run the simulation, it will print all the signal changes, you can debug signals this way very easily.