rostopic list - Displays a list of available topics, Topics are like channels, through which messages flow.
rostopic echo /topic - Current values from the messages flowing through this topic
rosparam list - shows variables / settings
rosmake node - Makes a node. A node is like a program, or more accuratly, a programs folder. You only need to make it if it's not already compiled.
rosrun node nodename - Runs a node. The nodename is the name of the binary. It's normally the same name as the node. E.g. rosrun rviz rviz
roscd node - cd to the folder of the node. Note that you don't have to be in the folder to run the binary... rosrun seems to know where all the nodes are. In the folders, messages will be in the msg folder. They will be in .msg files and the files contain the types of the data in that topic.
Open a new terminal window (press Ctrl+Alt+T see Linux notes below) and type roscore. The core should start and no prompt will be returned. Minimize the window. On a real robot, this would be started automatically when the OS started.
Open another terminal window and type rosrun turtlesim turtlesim_node you should see the TurtleSim screen with the turtle in the center. You can minimize the terminal window, but leave the TurtleSim screen up.
Open another terminal window and type rosrun turtlesim turtle_teleop_key This terminal window will pick up arrow key presses (when you have the window selecte) and send them to the turtle. Make sure it's visable, but you can re-size it to make it smaller.
Open another terminal window and type rostopic list you should see the new turtle topics. For example, you can type rostopic echo /turtle1/cmd_vel and then switch back to the turtle_teleop_key window and press the arrow keys to see the changes in velocity of the turtle. (Note: in Xbuntu, When you minimize a program, it goes to the TOP, not the bottom.)
Open another terminal window and type:
sudo apt-get install ros-jade-rqt
sudo apt-get install ros-
rosrun rqt_graph rqt_graph
This should creates a dynamic graph of what's going on in the system. If you place your mouse over /turtle1/command_velocity it will highlight the ROS nodes (in circles) and topics (on lines). As you can see, the turtlesim_node and the turtle_teleop_key nodes are communicating on the topic named /turtle1/command_velocity.
rosrun rviz rvis - 3D Robot Visualizer
MoveIt! is state of the art software for mobile manipulation, incorporating
the latest advances in motion planning, manipulation, 3D perception, kinematics,
control and navigation. It provides an easy-to-use platform for developing
advanced robotics applications, evaluating new robot designs and building
integrated robotics products for industrial, commercial, R&D and other
SMACH is a state machine for high level behaviors.
Assuming you have a 64 bit processor running Windows, Macintosh, or Solaris:
|file: /Techref/method/ai/SDROSClass.htm, 9KB, , updated: 2015/9/25 11:00, local time: 2017/12/10 20:24,
|©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.sxlist.com/techref/method/ai/SDROSClass.htm"> SD Robotics Club at RoboLink ROS Workshop</A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!