refactor: drop the ROS message traits and serializers from Accel and Imu
Accel.h and Imu.h still carried the generated ros::message_traits, ros::serialization and ros::message_operations blocks (MD5Sum, DataType, Definition, Serializer, Printer). Nothing in the nav core links roscpp, so those blocks only pulled ROS symbols into headers that must stay ROS-free. This matches the cleanup already applied to the other messages in the package. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,141 +69,4 @@ bool operator!=(const ::robot_geometry_msgs::Accel_<ContainerAllocator1> & lhs,
|
||||
|
||||
} // namespace robot_geometry_msgs
|
||||
|
||||
namespace ros
|
||||
{
|
||||
namespace message_traits
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template <class ContainerAllocator>
|
||||
struct IsMessage< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
: TrueType
|
||||
{ };
|
||||
|
||||
template <class ContainerAllocator>
|
||||
struct IsMessage< ::robot_geometry_msgs::Accel_<ContainerAllocator> const>
|
||||
: TrueType
|
||||
{ };
|
||||
|
||||
template <class ContainerAllocator>
|
||||
struct IsFixedSize< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
: TrueType
|
||||
{ };
|
||||
|
||||
template <class ContainerAllocator>
|
||||
struct IsFixedSize< ::robot_geometry_msgs::Accel_<ContainerAllocator> const>
|
||||
: TrueType
|
||||
{ };
|
||||
|
||||
template <class ContainerAllocator>
|
||||
struct HasHeader< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
: FalseType
|
||||
{ };
|
||||
|
||||
template <class ContainerAllocator>
|
||||
struct HasHeader< ::robot_geometry_msgs::Accel_<ContainerAllocator> const>
|
||||
: FalseType
|
||||
{ };
|
||||
|
||||
|
||||
template<class ContainerAllocator>
|
||||
struct MD5Sum< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
{
|
||||
static const char* value()
|
||||
{
|
||||
return "9f195f881246fdfa2798d1d3eebca84a";
|
||||
}
|
||||
|
||||
static const char* value(const ::robot_geometry_msgs::Accel_<ContainerAllocator>&) { return value(); }
|
||||
static const uint64_t static_value1 = 0x9f195f881246fdfaULL;
|
||||
static const uint64_t static_value2 = 0x2798d1d3eebca84aULL;
|
||||
};
|
||||
|
||||
template<class ContainerAllocator>
|
||||
struct DataType< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
{
|
||||
static const char* value()
|
||||
{
|
||||
return "robot_geometry_msgs/Accel";
|
||||
}
|
||||
|
||||
static const char* value(const ::robot_geometry_msgs::Accel_<ContainerAllocator>&) { return value(); }
|
||||
};
|
||||
|
||||
template<class ContainerAllocator>
|
||||
struct Definition< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
{
|
||||
static const char* value()
|
||||
{
|
||||
return "# This expresses acceleration in free space broken into its linear and angular parts.\n"
|
||||
"Vector3 linear\n"
|
||||
"Vector3 angular\n"
|
||||
"\n"
|
||||
"================================================================================\n"
|
||||
"MSG: robot_geometry_msgs/Vector3\n"
|
||||
"# This represents a vector in free space. \n"
|
||||
"# It is only meant to represent a direction. Therefore, it does not\n"
|
||||
"# make sense to apply a translation to it (e.g., when applying a \n"
|
||||
"# generic rigid transformation to a Vector3, tf2 will only apply the\n"
|
||||
"# rotation). If you want your data to be translatable too, use the\n"
|
||||
"# robot_geometry_msgs/Point message instead.\n"
|
||||
"\n"
|
||||
"float64 x\n"
|
||||
"float64 y\n"
|
||||
"float64 z\n"
|
||||
;
|
||||
}
|
||||
|
||||
static const char* value(const ::robot_geometry_msgs::Accel_<ContainerAllocator>&) { return value(); }
|
||||
};
|
||||
|
||||
} // namespace message_traits
|
||||
} // namespace ros
|
||||
|
||||
namespace ros
|
||||
{
|
||||
namespace serialization
|
||||
{
|
||||
|
||||
template<class ContainerAllocator> struct Serializer< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
{
|
||||
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
|
||||
{
|
||||
stream.next(m.linear);
|
||||
stream.next(m.angular);
|
||||
}
|
||||
|
||||
ROS_DECLARE_ALLINONE_SERIALIZER
|
||||
}; // struct Accel_
|
||||
|
||||
} // namespace serialization
|
||||
} // namespace ros
|
||||
|
||||
namespace ros
|
||||
{
|
||||
namespace message_operations
|
||||
{
|
||||
|
||||
template<class ContainerAllocator>
|
||||
struct Printer< ::robot_geometry_msgs::Accel_<ContainerAllocator> >
|
||||
{
|
||||
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::robot_geometry_msgs::Accel_<ContainerAllocator>& v)
|
||||
{
|
||||
if (false || !indent.empty())
|
||||
s << std::endl;
|
||||
s << indent << "linear: ";
|
||||
Printer< ::robot_geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.linear);
|
||||
if (true || !indent.empty())
|
||||
s << std::endl;
|
||||
s << indent << "angular: ";
|
||||
Printer< ::robot_geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.angular);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace message_operations
|
||||
} // namespace ros
|
||||
|
||||
#endif // ROBOT_GEOMETRY_MSGS_MESSAGE_ACCEL_H
|
||||
Reference in New Issue
Block a user