Guest User

Untitled

a guest
Apr 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. # catkin:
  2.  
  3. ```
  4. make source
  5. catkin_make # -or- catkin_make --source src
  6.  
  7. git env vars:
  8. source devel/setup.bash
  9.  
  10. rospack find [package]
  11. roscd # ros cd
  12. rosls # ros ls
  13. ```
  14.  
  15.  
  16. # other ROS stuff
  17.  
  18. ```sh
  19. rosnode list
  20. rosnode ping turtlesim
  21.  
  22. rosrun roscore
  23. rosrun turtlesim turtlesim_node
  24.  
  25. rosrun rqt_graph rqt_graph # make a subscriber graph
  26. rosrun rqt_plot rqt_plot
  27.  
  28.  
  29. rostopic -h
  30. rostopic bw display bandwidth used by topic
  31. rostopic echo print messages to screen
  32. rostopic hz display publishing rate of topic
  33. rostopic list print information about active topics
  34. rostopic pub publish data to topic
  35. rostopic type print topic type
  36.  
  37. rostopic echo [topic]
  38. rostopic type [topic]
  39. rostopic type /turtle1/cmd_vel
  40. # --> geometry_msgs/Twist
  41. # wtf is "geometry_msgs/Twist"? let's see:
  42. rosmsg show geometry_msgs/Twist
  43. # -->
  44. geometry_msgs/Vector3 linear
  45. float64 x
  46. float64 y
  47. float64 z
  48. geometry_msgs/Vector3 angular
  49. float64 x
  50. float64 y
  51. float64 z
  52.  
  53. rostopic pub [topic] [msg_type] [args] # publishes data on currently advertised topic
  54. rostopic pub -1 turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
  55. # -1: only publish one message and exit
  56. # -- what follows now are args
  57.  
  58. rosservice
  59. rosservice call /spawn 2 2 0.2 "WOW"
  60.  
  61. rosparam # allows you to store and manipulate ros parameter server data
  62. --> integer, float, dictionary, list, boolean. YAML format
  63. rosparam [set|get|load|dump|delete|list]
  64. rosparam list
  65. rosparam [dump|load] <filename.yaml> [OPTIONAL: namespace]
  66.  
  67. roslaunch nolan_tutorial turtlemimic.launch
  68.  
  69. rosmsg show <message_name>
  70. rosmsg show nolan_tutorial/num
  71. rossrv show "
  72.  
  73.  
  74. ```
Add Comment
Please, Sign In to add comment