ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Maybe you need to explicitly declare the output key in the State Machine?

Give this a try:

smach.StateMachine.add('FOO',
                  ServiceState('/service',
                                myService,
                                response_cb=foo_response_cb,
                                output_keys=['foo_var_out']),
                  remapping={'foo_var_out':'sm_var'},
                  transitions={'succeeded':'succeeded'},
                  output_keys=['sm_var'])

Maybe you need to explicitly declare the output key in the State Machine?

Give this a try:Like this:

smach.StateMachine.add('FOO',
                  ServiceState('/service',
                                myService,
                                response_cb=foo_response_cb,
                                output_keys=['foo_var_out']),
                  remapping={'foo_var_out':'sm_var'},
                  transitions={'succeeded':'succeeded'},
                  output_keys=['sm_var'])