Difference between revisions of "ROS Tutorials"

From Lofaro Lab Wiki
Jump to: navigation, search
(Creating a ROS msg and srv)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Practicing writing a wiki page- all information below is incomplete until otherwise noted.
+
This tutorial assumes that you will be working in ROS-hydro on Ubuntu 12.04.
  
Aside to editor, to improve:
 
 
This tutorial assumes that you will be working in ROS-hydro on Ubuntu 12.04.
 
 
This wiki is based on the tutorials given [http://wiki.ros.org/ROS/Tutorials here].
 
This wiki is based on the tutorials given [http://wiki.ros.org/ROS/Tutorials here].
  
Line 17: Line 14:
 
# [[Understanding ROS Services and Parameters]]
 
# [[Understanding ROS Services and Parameters]]
 
# [[Using rqt_consol and roslaunch]]
 
# [[Using rqt_consol and roslaunch]]
 
 
# [[Using rosed to Edit Files in ROS]]
 
# [[Using rosed to Edit Files in ROS]]
 
 
# [[Creating a ROS msg and srv]]
 
# [[Creating a ROS msg and srv]]
 +
# [[Writing a Simple Publisher and Subscriber (C++)]]
 +
# [[Writing a Simple Publisher and Subscriber (Python)]]
 +
# [[Examining the Simple Publisher and Subscriber]]
 +
# [[Writing a Simpler Service and Client (C++)]]
 +
# [[Writing a Simpler Service and Client (Python)]]
 +
# [[Examining the Simpler Service and Client]]
 +
# [[Recording and Playing Back Data]]
 +
# [[Getting Started with roswtf]]
 +
# [[Navigating the ROS wiki]]
 +
# [[Where Next?]]
  
==Writing a Simple Publisher and Subscriber (C++)==
+
=Intermediate Level=
'''Writing the Publisher Node'''
+
  
1) In a terminal, move to your beginner_tutorials folder:
+
Open the terminal. To complete each step, type in the following commands in the order shown.
  <nowiki>cd ~/catkin_ws/src/beginner_tutorials</nowiki>
+
# [[Creating a ROS Package by Hand]]
 +
# [[Managing System Dependencies]]
 +
# [[Roslaunch Tips for Large Projects]]
 +
# [[Running ROS Across Multiple Machines]]
 +
# [[Defining Custom Messages]]
  
2) Create the file talker.cpp:
 
  <nowiki>gedit src/talker.cpp</nowiki>
 
  
3) In the gedit editor, paste all from [https://raw.githubusercontent.com/ros/ros_tutorials/groovy-devel/roscpp_tutorials/talker/talker.cpp this link].
+
=Advanced=
Save the file and close the editor. For information on what is inside this file, see [http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29#roscpp_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.The_Code_Explained this link]. In a nutshell, it initializes the ROS system, advertise what we are doing, and finally loop what we are doing.
+
* [[Setting up RGBDSLAM with ROS in Gazebo]]
 
+
* [[Setting up RGBDSLAM with ROS in the real world]]
'''Writing the Subscriber Node'''
+
* [[Raspberry_Pi_and_Arducopter_connections_through_ROS]]
 
+
* [[Ros_on_Raspberry_pi]]
1) In a terminal, move to your beginner_tutorials folder:
+
  <nowiki>cd ~/catkin_ws/src/beginner_tutorials</nowiki>
+
 
+
2) Create the file listener.cpp:
+
  <nowiki>gedit src/listener.cpp</nowiki>
+
 
+
3) In the gedit editor, paste all from [https://raw.githubusercontent.com/ros/ros_tutorials/groovy-devel/roscpp_tutorials/listener/listener.cpp this link].
+
Save the file and close the editor. For information on what is inside this file, see [http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29#roscpp_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.The_Code_Explained-1 this link]. In a nutshell, it initializes the ROS system, subscribes to the topic 'chatter', spin (wait for messages), when message arrives call the chatterCallback() function.
+
 
+
'''Building Nodes'''
+
 
+
==Writing a Simple Publisher and Subscriber (Python)==
+
==Examining the Simple Publisher and Subscriber==
+
==Writing a Simpler Service and Client (C++)==
+
==Writing a Simpler Service and Client (Python)==
+
==Examining the Simpler Service and Client==
+
==Recording and Playing Back Data==
+
==Getting Started with roswtf==
+
==Navigating the ROS wiki==
+
==Where Next?==
+
 
+
=Intermediate Level=
+

Latest revision as of 17:23, 30 October 2014

This tutorial assumes that you will be working in ROS-hydro on Ubuntu 12.04.

This wiki is based on the tutorials given here.

Beginner Level

Open the terminal. To complete each step, type in the following commands in the order shown.

  1. Installing and configuring your ROS environment
  2. Navigating the ROS Filesystem
  3. Creating a ROS Package
  4. Building a ROS Package
  5. Understanding ROS Nodes
  6. Understanding ROS Topics
  7. Understanding ROS Services and Parameters
  8. Using rqt_consol and roslaunch
  9. Using rosed to Edit Files in ROS
  10. Creating a ROS msg and srv
  11. Writing a Simple Publisher and Subscriber (C++)
  12. Writing a Simple Publisher and Subscriber (Python)
  13. Examining the Simple Publisher and Subscriber
  14. Writing a Simpler Service and Client (C++)
  15. Writing a Simpler Service and Client (Python)
  16. Examining the Simpler Service and Client
  17. Recording and Playing Back Data
  18. Getting Started with roswtf
  19. Navigating the ROS wiki
  20. Where Next?

Intermediate Level

Open the terminal. To complete each step, type in the following commands in the order shown.

  1. Creating a ROS Package by Hand
  2. Managing System Dependencies
  3. Roslaunch Tips for Large Projects
  4. Running ROS Across Multiple Machines
  5. Defining Custom Messages


Advanced