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

Cannot find rosserial_python serial_node.py

asked 2020-09-06 16:27:15 -0500

mjwhite gravatar image

I installed rosserial_python using the following commands: $ sudo apt-get install ros-melodic-rosserial-arduino $ sudo apt-get install ros-melodic-rosserial

Sourced the setup.bash file. And I get the following error:

rosrun rosserial_python serial_node [rosrun] Couldn't find executable named serial_node below /opt/ros/melodic/share/rosserial_python

The serial_node.py is not in the share directory. Why is ROS looking in that directory? I found it under /opt/ros/melodic/lib/rosserial_python

Does the lib directory need to get added to ROS_PACKAGE_PATH?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-09-06 18:26:50 -0500

mjwhite gravatar image

So I found the solution:

So I originally had installed rosserial_python from source in my catkin_ws. I then removed that code from the src directory and rebuilt it with catkin_make ,but I still had the code in the devel, build, and install directories. After removing the lib, share, and install directories from those directories and rebuilding then I no longer get this error.

Looks like the catkin workspace overlay was getting in the way of the code in /opt/ros/melodic.

edit flag offensive delete link more

Comments

This worked for me too

catmanjan gravatar image catmanjan  ( 2022-04-27 03:28:19 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-06 16:27:15 -0500

Seen: 1,423 times

Last updated: Sep 06 '20