Robotics StackExchange | Archived questions

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

I try to connect Arduino to ros master noetic. I already install the following packages

sudo apt install ros-noetic-rosserial*

sudo pip install pyserial

after that I run the command

rosrun rosserial_python serial_node.py /dev/ttyACM0 and get the the following error
[rosrun] Couldn't find executable named serial_node.py below /opt/ros/noetic/share/rosserial_python

Asked by Mubashir alam on 2023-01-27 20:25:00 UTC

Comments

What Operating System are you running, and what cpu type (x86 or arm)?

Asked by Mike Scheutzow on 2023-01-28 07:46:07 UTC

Ubuntu 20. and my CPU type is x86_64

Asked by Mubashir alam on 2023-01-29 07:02:33 UTC

Please show us the output of this Terminal command: python --version

Does this file exist on your system? /opt/ros/noetic/lib/rosserial_python/serial_node.py

Asked by Mike Scheutzow on 2023-01-29 08:59:23 UTC

Answers

Check if the rosserial package is installed . rospack list | grep rosserial_python

If not install the package: Install with this command:

sudo apt install ros-noetic-rosserial-arduino

Then run the node again .

Asked by Davies Ogunsina on 2023-02-23 14:38:22 UTC

Comments