Robotics Class 2011/Assignment 1: Difference between revisions
From HacDC Wiki
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
svn co http://hacdc-ros-pkg.googlecode.com/svn/trunk/robot_emotions | svn co http://hacdc-ros-pkg.googlecode.com/svn/trunk/robot_emotions | ||
rosmake robot_emotions | rosmake robot_emotions | ||
Assignment Hint: | |||
The robot_emotions ROS package is actually a complete (but very simple) solution to the homework. Feel free to investigate it if you need help. |
Revision as of 20:02, 4 June 2011
Assignment 1 for the Robotics Class 2011
Write a ROS node that subscribes to the "sensorPacket" topic (a message of type irobot_create_2_1/SensorPacket), and uses values from within this packet to represent the emotional state of the robot. You will then publish the robot emotional state via publishing a message of type robot_emotions/EmotionalState with the topic name "robot_emotions".
You can explore the structure of the two above message types by using rosmsg show in the following way: rosmsg show irobot_create_2_1/SensorPacket rosmsg show robot_emotions/EmotionalState
In order to obtain the definition of the robot_emotions/EmotionalState message, you will need to check out the robot_emotions ROS package from the HacDC ROS repository:
cd to where you store your downloaded ROS packages svn co http://hacdc-ros-pkg.googlecode.com/svn/trunk/robot_emotions rosmake robot_emotions
Assignment Hint: The robot_emotions ROS package is actually a complete (but very simple) solution to the homework. Feel free to investigate it if you need help.