Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can ActionServerWrapper use a dynamically set SMACH state

I have just discovered ActionServerWrapper which seems to be the right choice because I need to execute and abort a smach statemachine though ROS messages.

But I have a long list of statemachines and only one can run at a time. It makes most sense to create just one ActionServerWrapper, which in the "Goal" message takes the name of the state to execute.

But the introduction tutorial shows an ActionServerWrapper where the SMACH state is set in the constructor. Can I change the main state later, just before execution?

BTW: The link at the bottom of this page, referring to the ActionServerWrapper documentation, is dead. Where do I find it?