Installing and using SMACH-ROS

The installation of SMACH is pretty straightforward and it can be installed directly using the following command:

$ sudo apt-get install ros-melodic-smach ros-melodic-smach-ros ros-melodic-executive-smach ros-melodic-smach-viewer

Let's look at a very simple example to explain this concept.

Get ROS Robotics Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.