ROS(006: Using Rqtconsole Roslaunch)

$ rosrun rqt_console rqt_console

$ rosrun rqt_logger_level rqt_logger_level

 

$ rosrun turtlesim turtlesim_node

$ rostopic pub /turtle1/cmd_vel geometry_msgs/Twist -r 1 — ‘{linear: {x: 2.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}’

 

 

$ cd ~/catkin_ws

$ source devel/setup.bash

$ roscd beginner_tutorials

$ mkdir launch

$ cd launch

$ vi turtlemimic.launch

$ roslaunch beginner_tutorials turtlemimic.launch

$ rostopic pub /turtlesim1/turtle1/cmd_vel geometry_msgs/Twist -r 1 — ‘[2.0, 0.0, 0.0]’ ‘[0.0, 0.0, -1.8]’

 

$ rqt

Plugins>Introspection>Node Graph

or

$ rqt_graph

 

Ref:

http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch

打赏