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

Error smach_viewer in ROS noetic

asked 2022-07-05 02:56:44 -0600

Morteza7 gravatar image

updated 2022-07-05 02:58:37 -0600

Hi, I read the smach tutorial and there is no problem until I run smach_viewer command. Smach tutorial rosrun smach_viewer smach_viewer.py

The terminal shows the below error : [rospack] Error: package 'smach_viewer' not found

I checked the _/opt/ros/noetic/share_ path there is no smach_viewer package. just smach. the question is: What should I do to see the graphical representation of my smach code?

I'm using ubuntu focal, Noetic ROS, and python3. thanks a lot for your support.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-07-14 02:47:50 -0600

Morteza7 gravatar image

It seems Smach lib is based on Python2 and ROS noetic is not supported by python2. So the lib of the Smach should change to Python3.

edit flag offensive delete link more
0

answered 2023-03-28 09:20:02 -0600

a.bl gravatar image

Not sure if this has changed recently, but i have installed python 3.8, am using ROS noetic and can start smach_viewer after having installed it with sudo apt-get install ros-noetic-smach-viewer. (I was facing another problem though that smach_viewer did not run within a conda environment. (base) conda deactivate solved this.)

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-07-05 02:56:44 -0600

Seen: 347 times

Last updated: Jul 14 '22