arm_state.h
Go to the documentation of this file.
00001 /*
00002  * arm_state.h
00003  *
00004  *  Created on: 17 Jul 2012
00005  *      Author: andreas
00006  */
00007 
00008 #ifndef ARM_STATE_H_
00009 #define ARM_STATE_H_
00010 
00011 #include <ros/ros.h>
00012 #include <sensor_msgs/JointState.h>
00013 #include <map>
00014 
00015 
00016 class ArmState
00017 {
00018 public:
00019     static const ArmState& get(const std::string& armStateParameter, const std::string& armName);
00020     static void replaceJointPositions(sensor_msgs::JointState& state, const sensor_msgs::JointState& joints);
00021 
00022     const std::string& getArmName() const {return armName;}
00023     const sensor_msgs::JointState& getJointStates() const {return armState;}
00024     void replaceJointPositions(sensor_msgs::JointState& state) const;
00025 
00026 private:
00027     static std::map<std::string, ArmState> states;
00028 
00029     std::string armName;
00030     sensor_msgs::JointState armState;
00031     ArmState(const std::string& armStateParameter, const std::string& armName);
00032 };
00033 
00034 
00035 
00036 #endif /* ARM_STATE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


tidyup_utils
Author(s): Andreas Hertle
autogenerated on Wed Dec 26 2012 15:27:25