rosrun teleop_twist_keyboard teleop_twist_keyboard.py

[rospack] Error: package ‘teleop_twist_keyboard’ not found

解决方案:
1.cd ~/catkin_ws/src(如果没有这个目录先在工作目录下创建工作空间:mkdir -p catkin_ws/src
2.git clone https://github.com/ros-teleop/teleop_twist_keyboard(一定要在src目录下)
3.cd ~/catkin_ws
4.catkin_make
5.source ~/catkin_ws/devel/setup.bash(把这句话填写在 .bashrc 文件里)
6.source ~/.bashrc

你可能感兴趣的:(ros笔记)