Ask Your Question
0

Couldn't find executable named Keyboard below /home/robot-raspi/catkin_ws/src/mobile_robot_pkg

asked 2019-08-15 14:02:18 -0500

PabloRC gravatar image

updated 2019-08-15 19:43:58 -0500

jayess gravatar image

I am using the book Robot Operating System ROS For Absolute Begginers. I am trying to make the book robot but I have an error using the command:

rosrun mobile_robot_pkg Keyboard robot_bt_driver.py

Error:

[rosrun] Couldn't find executable named Keyboard below / home / pablo-rdgz / catkin_ws / src / mobile_robot_pkg
edit retag flag offensive close merge delete

Comments

Can you please make your question readable by removing the boilerplate comments from your CMakeLists.txt file and using preformatted text (101010) button. Also, some more context is probably going to be needed as well

jayess gravatar imagejayess ( 2019-08-15 16:07:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-15 19:55:23 -0500

jayess gravatar image

The syntax for rosrun is

rosrun <package-name> <executable>

It looks like, in your case, <package-name> is mobile_robot_pkg and <executable> is robot_bt_driver.py. So, the command should be

rosrun mobile_robot_pkg robot_bt_driver.py

I'm not sure what Keyboard is.

edit flag offensive delete link more

Comments

Also, make sure that your node is executable by running

chmod +x robot_bt_driver.py
jayess gravatar imagejayess ( 2019-08-15 20:11:12 -0500 )edit

chmod: cannot access 'robot_bt_driver.py': No such file or directory

PabloRC gravatar imagePabloRC ( 2019-08-15 20:13:00 -0500 )edit

You have to run that command from the directory in which that file is located

jayess gravatar imagejayess ( 2019-08-15 20:14:32 -0500 )edit

thank you very much it finally works

PabloRC gravatar imagePabloRC ( 2019-08-15 20:35:41 -0500 )edit

Great. Can you please mark this answer as correct by clicking on the check mark?

jayess gravatar imagejayess ( 2019-08-15 20:41:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-08-15 13:54:55 -0500

Seen: 22 times

Last updated: Aug 15