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

smach states based on topic messages

asked 2013-01-15 03:51:13 -0600

bajo gravatar image

Hi,

for my project i started to create a SMACH state machine. The state transitions should be based on results from actionservers and their responses and mainly on the data received on one specific topic which contains commands from speech recognition. The only way i found from tutorials and entries on answers.ros.org is to implement a subscriber in every state of my state machine and work with the data from within this state. As this would produce a lot of duplicate code i would like to know if there is any way to avoid this and handle the incoming data in one place only from which the states can use the data and act accordingly.

Thanks

edit retag flag offensive close merge delete

Comments

I'm facing the same problem. Did you ever figure out a good solution?

josephcoombe gravatar image josephcoombe  ( 2017-12-01 10:00:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-15 10:13:14 -0600

jbohren gravatar image

If you're using actionlib action servers, is there a reason you're not using SimpleActionState?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-01-15 03:51:13 -0600

Seen: 708 times

Last updated: Jan 15 '13