Actions

Robotics Class 2011/Assignment 1: Difference between revisions

From HacDC Wiki

m (Created page with "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 wi...")
 
mNo edit summary
Line 4: Line 4:


You can explore the structure of the two above message types by using rosmsg show in the following way:
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
rosmsg show robot_emotions/EmotionalState
rosmsg show irobot_create_2_1/SensorPacket


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:
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:

Revision as of 20:00, 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