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.
From:
http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics
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
domains.
moveit.ros.org
SMACH is a state machine for high level behaviors.
http://wiki.ros.org/smach
Assuming you have a 64 bit processor running Windows, Macintosh, or Solaris:
See also:
file: /Techref/method/ai/SDROSClass.htm, 9KB, , updated: 2020/6/8 10:34, local time: 2024/9/9 08:46,
44.220.181.180:LOG IN
|
©2024 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://piclist.com/techref/method/ai/SDROSClass.htm"> SD Robotics Club at RoboLink ROS Workshop</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.