$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_assisted_arm_navigation_msgs/msg/AssistedArmNavigationState.msg */ 00002 #ifndef SRS_ASSISTED_ARM_NAVIGATION_MSGS_MESSAGE_ASSISTEDARMNAVIGATIONSTATE_H 00003 #define SRS_ASSISTED_ARM_NAVIGATION_MSGS_MESSAGE_ASSISTEDARMNAVIGATIONSTATE_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 00018 namespace srs_assisted_arm_navigation_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct AssistedArmNavigationState_ { 00022 typedef AssistedArmNavigationState_<ContainerAllocator> Type; 00023 00024 AssistedArmNavigationState_() 00025 : planning_started(false) 00026 , position_reachable(false) 00027 , position_in_collision(false) 00028 , joints_out_of_limits(false) 00029 , error_description() 00030 , position_locked(false) 00031 , orientation_locked(false) 00032 , aco_state(false) 00033 , attached_objects() 00034 { 00035 } 00036 00037 AssistedArmNavigationState_(const ContainerAllocator& _alloc) 00038 : planning_started(false) 00039 , position_reachable(false) 00040 , position_in_collision(false) 00041 , joints_out_of_limits(false) 00042 , error_description(_alloc) 00043 , position_locked(false) 00044 , orientation_locked(false) 00045 , aco_state(false) 00046 , attached_objects(_alloc) 00047 { 00048 } 00049 00050 typedef uint8_t _planning_started_type; 00051 uint8_t planning_started; 00052 00053 typedef uint8_t _position_reachable_type; 00054 uint8_t position_reachable; 00055 00056 typedef uint8_t _position_in_collision_type; 00057 uint8_t position_in_collision; 00058 00059 typedef uint8_t _joints_out_of_limits_type; 00060 uint8_t joints_out_of_limits; 00061 00062 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_description_type; 00063 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_description; 00064 00065 typedef uint8_t _position_locked_type; 00066 uint8_t position_locked; 00067 00068 typedef uint8_t _orientation_locked_type; 00069 uint8_t orientation_locked; 00070 00071 typedef uint8_t _aco_state_type; 00072 uint8_t aco_state; 00073 00074 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _attached_objects_type; 00075 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > attached_objects; 00076 00077 00078 ROS_DEPRECATED uint32_t get_attached_objects_size() const { return (uint32_t)attached_objects.size(); } 00079 ROS_DEPRECATED void set_attached_objects_size(uint32_t size) { attached_objects.resize((size_t)size); } 00080 ROS_DEPRECATED void get_attached_objects_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->attached_objects; } 00081 ROS_DEPRECATED void set_attached_objects_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->attached_objects = vec; } 00082 private: 00083 static const char* __s_getDataType_() { return "srs_assisted_arm_navigation_msgs/AssistedArmNavigationState"; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00086 00087 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00088 00089 private: 00090 static const char* __s_getMD5Sum_() { return "4535a19480c891b40f666fd0e350e902"; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00093 00094 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00095 00096 private: 00097 static const char* __s_getMessageDefinition_() { return "###\n\ 00098 # This message is used to publish internal state of assisted arm navigation node\n\ 00099 ###\n\ 00100 \n\ 00101 # Internal state (planned, executing etc.) - TBD\n\ 00102 \n\ 00103 bool planning_started\n\ 00104 bool position_reachable # IK can be found\n\ 00105 bool position_in_collision\n\ 00106 \n\ 00107 bool joints_out_of_limits\n\ 00108 \n\ 00109 string error_description # position not reachable, collision etc.\n\ 00110 \n\ 00111 # Spacenav variables\n\ 00112 bool position_locked\n\ 00113 bool orientation_locked\n\ 00114 \n\ 00115 bool aco_state # true - enable, false - disabled\n\ 00116 \n\ 00117 string[] attached_objects\n\ 00118 \n\ 00119 "; } 00120 public: 00121 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00122 00123 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00124 00125 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00126 { 00127 ros::serialization::OStream stream(write_ptr, 1000000000); 00128 ros::serialization::serialize(stream, planning_started); 00129 ros::serialization::serialize(stream, position_reachable); 00130 ros::serialization::serialize(stream, position_in_collision); 00131 ros::serialization::serialize(stream, joints_out_of_limits); 00132 ros::serialization::serialize(stream, error_description); 00133 ros::serialization::serialize(stream, position_locked); 00134 ros::serialization::serialize(stream, orientation_locked); 00135 ros::serialization::serialize(stream, aco_state); 00136 ros::serialization::serialize(stream, attached_objects); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00141 { 00142 ros::serialization::IStream stream(read_ptr, 1000000000); 00143 ros::serialization::deserialize(stream, planning_started); 00144 ros::serialization::deserialize(stream, position_reachable); 00145 ros::serialization::deserialize(stream, position_in_collision); 00146 ros::serialization::deserialize(stream, joints_out_of_limits); 00147 ros::serialization::deserialize(stream, error_description); 00148 ros::serialization::deserialize(stream, position_locked); 00149 ros::serialization::deserialize(stream, orientation_locked); 00150 ros::serialization::deserialize(stream, aco_state); 00151 ros::serialization::deserialize(stream, attached_objects); 00152 return stream.getData(); 00153 } 00154 00155 ROS_DEPRECATED virtual uint32_t serializationLength() const 00156 { 00157 uint32_t size = 0; 00158 size += ros::serialization::serializationLength(planning_started); 00159 size += ros::serialization::serializationLength(position_reachable); 00160 size += ros::serialization::serializationLength(position_in_collision); 00161 size += ros::serialization::serializationLength(joints_out_of_limits); 00162 size += ros::serialization::serializationLength(error_description); 00163 size += ros::serialization::serializationLength(position_locked); 00164 size += ros::serialization::serializationLength(orientation_locked); 00165 size += ros::serialization::serializationLength(aco_state); 00166 size += ros::serialization::serializationLength(attached_objects); 00167 return size; 00168 } 00169 00170 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > Ptr; 00171 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> const> ConstPtr; 00172 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00173 }; // struct AssistedArmNavigationState 00174 typedef ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<std::allocator<void> > AssistedArmNavigationState; 00175 00176 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState> AssistedArmNavigationStatePtr; 00177 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState const> AssistedArmNavigationStateConstPtr; 00178 00179 00180 template<typename ContainerAllocator> 00181 std::ostream& operator<<(std::ostream& s, const ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> & v) 00182 { 00183 ros::message_operations::Printer< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> >::stream(s, "", v); 00184 return s;} 00185 00186 } // namespace srs_assisted_arm_navigation_msgs 00187 00188 namespace ros 00189 { 00190 namespace message_traits 00191 { 00192 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > : public TrueType {}; 00193 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> const> : public TrueType {}; 00194 template<class ContainerAllocator> 00195 struct MD5Sum< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "4535a19480c891b40f666fd0e350e902"; 00199 } 00200 00201 static const char* value(const ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> &) { return value(); } 00202 static const uint64_t static_value1 = 0x4535a19480c891b4ULL; 00203 static const uint64_t static_value2 = 0x0f666fd0e350e902ULL; 00204 }; 00205 00206 template<class ContainerAllocator> 00207 struct DataType< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > { 00208 static const char* value() 00209 { 00210 return "srs_assisted_arm_navigation_msgs/AssistedArmNavigationState"; 00211 } 00212 00213 static const char* value(const ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> &) { return value(); } 00214 }; 00215 00216 template<class ContainerAllocator> 00217 struct Definition< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > { 00218 static const char* value() 00219 { 00220 return "###\n\ 00221 # This message is used to publish internal state of assisted arm navigation node\n\ 00222 ###\n\ 00223 \n\ 00224 # Internal state (planned, executing etc.) - TBD\n\ 00225 \n\ 00226 bool planning_started\n\ 00227 bool position_reachable # IK can be found\n\ 00228 bool position_in_collision\n\ 00229 \n\ 00230 bool joints_out_of_limits\n\ 00231 \n\ 00232 string error_description # position not reachable, collision etc.\n\ 00233 \n\ 00234 # Spacenav variables\n\ 00235 bool position_locked\n\ 00236 bool orientation_locked\n\ 00237 \n\ 00238 bool aco_state # true - enable, false - disabled\n\ 00239 \n\ 00240 string[] attached_objects\n\ 00241 \n\ 00242 "; 00243 } 00244 00245 static const char* value(const ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> &) { return value(); } 00246 }; 00247 00248 } // namespace message_traits 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace serialization 00254 { 00255 00256 template<class ContainerAllocator> struct Serializer< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > 00257 { 00258 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00259 { 00260 stream.next(m.planning_started); 00261 stream.next(m.position_reachable); 00262 stream.next(m.position_in_collision); 00263 stream.next(m.joints_out_of_limits); 00264 stream.next(m.error_description); 00265 stream.next(m.position_locked); 00266 stream.next(m.orientation_locked); 00267 stream.next(m.aco_state); 00268 stream.next(m.attached_objects); 00269 } 00270 00271 ROS_DECLARE_ALLINONE_SERIALIZER; 00272 }; // struct AssistedArmNavigationState_ 00273 } // namespace serialization 00274 } // namespace ros 00275 00276 namespace ros 00277 { 00278 namespace message_operations 00279 { 00280 00281 template<class ContainerAllocator> 00282 struct Printer< ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> > 00283 { 00284 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_assisted_arm_navigation_msgs::AssistedArmNavigationState_<ContainerAllocator> & v) 00285 { 00286 s << indent << "planning_started: "; 00287 Printer<uint8_t>::stream(s, indent + " ", v.planning_started); 00288 s << indent << "position_reachable: "; 00289 Printer<uint8_t>::stream(s, indent + " ", v.position_reachable); 00290 s << indent << "position_in_collision: "; 00291 Printer<uint8_t>::stream(s, indent + " ", v.position_in_collision); 00292 s << indent << "joints_out_of_limits: "; 00293 Printer<uint8_t>::stream(s, indent + " ", v.joints_out_of_limits); 00294 s << indent << "error_description: "; 00295 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.error_description); 00296 s << indent << "position_locked: "; 00297 Printer<uint8_t>::stream(s, indent + " ", v.position_locked); 00298 s << indent << "orientation_locked: "; 00299 Printer<uint8_t>::stream(s, indent + " ", v.orientation_locked); 00300 s << indent << "aco_state: "; 00301 Printer<uint8_t>::stream(s, indent + " ", v.aco_state); 00302 s << indent << "attached_objects[]" << std::endl; 00303 for (size_t i = 0; i < v.attached_objects.size(); ++i) 00304 { 00305 s << indent << " attached_objects[" << i << "]: "; 00306 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.attached_objects[i]); 00307 } 00308 } 00309 }; 00310 00311 00312 } // namespace message_operations 00313 } // namespace ros 00314 00315 #endif // SRS_ASSISTED_ARM_NAVIGATION_MSGS_MESSAGE_ASSISTEDARMNAVIGATIONSTATE_H 00316