Navigating the ROS wiki

From Lofaro Lab Wiki
Jump to: navigation, search

Installation: See this link

The following available in Navigating the ROS Filesystem

  • rospack find - find the path to a specified ros folder or file
  • roscd - move around folders in ros
  • pwd - see the path to the current working directory
  • echo $ROS_PACKAGE_PATH - see the ros environment path
  • roscd log - see where ros keeps its log files
  • rosls - view the files inside a specified ros folder

The following available in Creating a ROS Package

  • source devel/setup.bash - source the devel folder
  • catkin_create_pkg - create a ros package

The following available in Building a ROS Package

  • source /opt/ros/hydro/setup.bash - source the environment
  • catkin_make - build the catkin package

The following available in Understanding ROS Nodes

  • sudo apt-get install ros-hydro-ros-tutorials - install turtle simulator
  • roscore - run the ros core
  • sudo chown -R <your_username> ~/.ros - change ownership of the root
  • rosnode list - see what nodes are running
  • rosnode info - see information about a specified node
  • rosrun - run a node
  • rosnode cleanup - cleans up the list of nodes
  • rosnode ping - test to see if specified node is running

The following available in Understanding ROS Topics

  • sudo apt-get install ros-hydro-rqt

sudo apt-get install ros-hydro-rqt-common-plugins - install rqt-graph

  • rostopic echo - view what data is being published to a topic
  • rostopic type - return th emessage type of a topic being published
  • rostopic pub - publish data to a topic
  • rostopic hz - see how fast data is being published to a topic
  • rostopic type - view in-depth information on a topic

The following available in Understanding ROS Service and Parameters

  • rosservice list - list the services a node can provide
  • rosservice type - display information on a service
  • rosservice call - use a service from a node
  • rosparam list - list the parameters the node has on the server
  • rosparam set - set parameters on the server
  • rosparam get - get parameters from the server
  • rosparam dump - Dump parameters to a file
  • rosparam load - load parameters from a file

The following available in Using rosed

  • rosed - Edit a file within a package

The following available in Creating a ROS msg and srv

  • rosmsg show - Tells you if ros sees a message specified
  • roscp - Copy files from one folder to another

The following available in Recording Data

  • rosbag record - reocrd topics from a node to a bag file
  • rosbag info - look at information on a bag file
  • rosbag play - Use the information from a bag file to run a node

The following available in Using roswtf

  • roswtf - command examines the system to try and find problems