-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control Action START has no effect #32
Comments
Hi, looks like the bug is withing the Mars: But the Simulator also has these methods directly:
so perhaps it would be better to use them. |
The simulation status is changed to stopped in the simulation thread after the current processed simulation step ends. If this is not happening, a simulation plugin might blocks the thread. Maybe one of the orogen MARS plugins is not returning from the update call? |
Maybe the status is set but the simulation is not waking up, you can try to add |
@planthaber I already tried that and it works for me. But I don' t know if using StartSimulation() / StopSimulation() directly in the Mars orogen component might have some unintended side effects. E.g. when I sent PAUSE, RESET and START quickly after each other, the Mars component crashed after I applied this change. |
I added the wakeAll() call in the develop branch of MARS. Did it solve your problem? If not, there must be something blocking the simulation thread, and I will spend a closer look into your specific setup. |
Hi,
me again. Still using Rock/Mars master on Ubuntu 16.04. When I send the value PAUSE on the control_action input port of the Mars Task, the simulation pauses. But then, when I send START it does not start again, but keeps being paused. Am I missing something or is there something wrong with the method startStopTrigger() used here
simulation-orogen-mars/tasks/Task.cpp
Line 491 in a6ea2a4
Best,
Dennis
The text was updated successfully, but these errors were encountered: