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

Can't locate node [joints_receive_from_arduino.py] in package [ros_control_example]

asked 2022-05-12 20:10:52 -0500

mustafaxfe gravatar image

updated 2022-05-12 23:41:43 -0500

gvdhoorn gravatar image

I have been trying to build and run ros_control_example(https://github.co... package. But, it seems I have done something wrong.

I have created catkin_ws folder and cloned it from github to catkin_ws/src folder and catkin_make finished without any error. And also I have added it to .bashrc(source catkin_ws/devel/setup.bash)

But when I try to run this package with "roslaunch ros_control_example check_velocity_controller.launch"

it gives "ERROR: cannot launch node of type [ros_control_example/joints_receive_from_arduino.py]: can't locate node [joints_receive_from_arduino.py] in package [ros_control_example]" But that python code "joints_receive_from_arduino.py" is under "~/catkin_ws/src/ros_control_example/ros_control_example/scripts/" folder.

And an empty rviz starts.

What should I have to do to solve this issue?

edit retag flag offensive close merge delete

Comments

I've updated the title of your post to better reflect what the problem is you report.

This is not related to RViz.

gvdhoorn gravatar image gvdhoorn  ( 2022-05-12 23:42:09 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2022-05-13 12:55:35 -0500

Davies Ogunsina gravatar image

updated 2022-05-13 13:01:04 -0500

Did you make your file readable? I mean the python file .

Chmod +× (name of .py file )

In the package you cloned you will have a .py file in the launch file

<launch> <node pkg="name of package" type="which is the .py " output="screen"/> </launch>

You have to make the .py file executable from the src folder . Cd into the src and make the file readable

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-05-12 20:10:52 -0500

Seen: 50 times

Last updated: May 13 '22