ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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'])
2 | No.2 Revision |
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'])