ROS - ahiver/docs GitHub Wiki

http://wiki.ros.org/noetic

Install

http://wiki.ros.org/noetic/Installation/Ubuntu

wget -c <https://raw.githubusercontent.com/qboticslabs/ros_install_noetic/master/ros_install_noetic.sh> && chmod +x ./ros_install_noetic.sh && ./ros_install_noetic.sh

Install plugin to add topics for compressed video

sudo apt install ros-noetic-image-transport-plugins

Start master

roscore

Send Test ROS topic message

rostopic pub -r 1 /msg std_msgs/String "data: 'Husarnet is awesome! :D'"

Read test ROS topic message

rostopic echo /msg

Diagnose ROS

roswtf

Install ROS project dependencies

rosdep install -y --from-paths src --ignore-src

Estimate ROS topic frequency

rostopic hz /mavros/imu/data

Set MavRos raw sensors rate

rosservice call /mavros/set_stream_rate 0 10 1

Echo ROS Topic and filter attribute

rostopic echo /camera/image_raw | grep encoding

Dump MavRos parameters

rosrun mavros mavparam dump params.txt

Get information about MavRos command

rosservice info /mavros/set_mode

Get information about Mavros command format

rossrv show mavros_msgs/SetMode

Play rosbag

rosbag play xxxx.bag --clock

View bag in ui

rqt_bag

Force ROS system time to be set from bag

rosparam set use_sim_time true

View video from sensor in UI

rosrun image_view image_view image:=/usb_cam/image_raw _image_transport:=compressed