rapid
A ROS robotics library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
joint_states.h
Go to the documentation of this file.
1 #ifndef _RAPID_PR2_JOINT_STATES_H_
2 #define _RAPID_PR2_JOINT_STATES_H_
3 
4 #include <map>
5 #include <string>
6 
7 namespace rapid {
8 namespace pr2 {
9 // JointStates holds default joint values for the PR2.
10 // These can be replaced as needed, and passed to a RobotStatePublisher.
11 // The default joint values are with the wheels facing forward, the robot
12 // looking straight ahead, and with both arms outstretched.
13 class JointStates {
14  public:
15  JointStates();
16  void Set(const std::map<std::string, double>& joint_positions);
17  std::map<std::string, double> joint_positions() const;
18 
19  private:
20  void Initialize();
21  std::map<std::string, double> joint_positions_;
22 };
23 } // namespace pr2
24 } // namespace rapid
25 
26 #endif // _RAPID_PR2_JOINT_STATES_H_
void Set(const std::map< std::string, double > &joint_positions)
std::map< std::string, double > joint_positions() const