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

What is a good API for SMACH?

asked 2022-02-13 21:00:57 -0500

Tawfiq Chowdhury gravatar image

If I want to run a state machine (SMACH) from another python program, what will be a good API to use? I know about SMACHA but I think that is for generating smach code while what I want is running a state machine from another program.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-14 12:52:35 -0500

updated 2022-02-14 12:53:02 -0500

You can implement the full smach state machine as an action client. And simply call that from another node/program?

This also gives you the ability to stop (preempt) the statemachine etc.

edit flag offensive delete link more

Comments

@Timple86, thanks for the idea.

Tawfiq Chowdhury gravatar image Tawfiq Chowdhury  ( 2022-02-14 22:50:41 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-02-13 21:00:57 -0500

Seen: 63 times

Last updated: Feb 14 '22