I record some pretty useful and frequently-used ROS command here.
-
rosnode list
List all active nodes. -
rosnode info /your_node_name
print information about node, such as the publishers and subscribers, and also thier message type! -
rostopic list
Print information about all active topics. -
rostopic echo /your_topic_name
Display the messages of this topic -
rqt_plot /your_topic_name (your_topic_name2 ...)
Plot the data of this topic or these topics. -
When you want to plot the array like
std_msgs::Float64MultiArray
, you can do like this:
rqt_plot /q_state/data[0]
then you can plot the elements of your array~