ROS Handy Commands
- Yingnan
- 2022年9月10日
- 讀畢需時 1 分鐘
已更新:2022年9月11日

Manual Control:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
Array Message:
rostopic pub pid_ref std_msgs/Float32MultiArray "layout:
dim:
- label: ''
size: 0
stride: 0
data_offset: 0
data: [90.0,150.0,5.0]"
Ros Serial:
rosrun rosserial_python serial_node.py /dev/ttyACM0
Handy Ros Commands:
rostopic list
rostopic echo
rqt_plot
source ./devel/setup.bash
rosrun rqt_tf_tree rqt_tf_tree
rospack list-names
Cheap Lidar:
roslaunch hls_lfcd_lds_driver view_hlds_laser.launch
roslaunch hls_lfcd_lds_driver hlds_laser.launch
Astra S:
cd ~/astra_s_ws
source devel/setup.bash
roslaunch astra_camera astra.launch
RPLidar:
cd ros_rplidar_ws
source ./devel/setup.bash
roslaunch rplidar_ros rplidar.launch
Create Ros Workspace:
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
Git Clone:
cd ~/catkin_ws/src
Then clone the repository using:
git clone -b <branch> <address>
For example, if you are looking to run it in ros hydro, your command could look like:
git clone -b hydro-devel https://github.com/ros/common_msgs.git
Once it is completed, do:
cd ~/catkin_ws
catkin_make
留言