compass_conversions Namespace Reference

Classes

class  CompassConverter
 Convert between various compass representations. More...
 
class  CompassFilter
 Message filter to convert between various compass representations. More...
 
class  UniversalAzimuthSubscriber
 message_filters subscriber that can subscribe to various topic types and convert them all to an Azimuth message. More...
 

Functions

template<typename T , typename ::std::enable_if_t< std::is_same< T, compass_msgs::Azimuth >::value||std::is_same< T, geometry_msgs::PoseWithCovarianceStamped >::value||std::is_same< T, geometry_msgs::QuaternionStamped >::value||std::is_same< T, sensor_msgs::Imu >::value > * = nullptr>
std::string getAzimuthTopicSuffix (decltype(compass_msgs::Azimuth::unit) unit, decltype(compass_msgs::Azimuth::orientation) orientation, decltype(compass_msgs::Azimuth::reference) reference)
 Get the suffix of topic name that identifies the particular representation of azimuth. More...
 
cras::optional< std::tuple< decltype(compass_msgs::Azimuth::unit), decltype(compass_msgs::Azimuth::orientation), decltype(compass_msgs::Azimuth::reference)> > parseAzimuthTopicName (const boost::shared_ptr< ros::M_string > &connectionHeaderPtr)
 Autodetect azimuth representation from connection header of a topic it came on. More...
 
cras::optional< std::tuple< decltype(compass_msgs::Azimuth::unit), decltype(compass_msgs::Azimuth::orientation), decltype(compass_msgs::Azimuth::reference)> > parseAzimuthTopicName (const std::string &topic)
 Autodetect azimuth representation from the name of the topic on which the message came. More...
 

Function Documentation

◆ getAzimuthTopicSuffix()

template<typename T , typename ::std::enable_if_t< std::is_same< T, compass_msgs::Azimuth >::value||std::is_same< T, geometry_msgs::PoseWithCovarianceStamped >::value||std::is_same< T, geometry_msgs::QuaternionStamped >::value||std::is_same< T, sensor_msgs::Imu >::value > * = nullptr>
std::string compass_conversions::getAzimuthTopicSuffix ( decltype(compass_msgs::Azimuth::unit)  unit,
decltype(compass_msgs::Azimuth::orientation)  orientation,
decltype(compass_msgs::Azimuth::reference)  reference 
)

Get the suffix of topic name that identifies the particular representation of azimuth.

Template Parameters
TType of the message carrying the azimuth information.
Parameters
[in]unitAngular units (only make sense for Azimuth messages).
[in]orientationENU or NED orientation of the world.
[in]referenceWhat North reference does the azimuth use.
Returns
The suffix.

◆ parseAzimuthTopicName() [1/2]

cras::optional<std::tuple< decltype(compass_msgs::Azimuth::unit), decltype(compass_msgs::Azimuth::orientation), decltype(compass_msgs::Azimuth::reference)> > compass_conversions::parseAzimuthTopicName ( const boost::shared_ptr< ros::M_string > &  connectionHeaderPtr)

Autodetect azimuth representation from connection header of a topic it came on.

Parameters
[in]connectionHeaderPtrPointer to the connection header, should contain key "topic".
Returns
The autodetected parameters, or nullopt if autodetection failed.

◆ parseAzimuthTopicName() [2/2]

cras::optional<std::tuple< decltype(compass_msgs::Azimuth::unit), decltype(compass_msgs::Azimuth::orientation), decltype(compass_msgs::Azimuth::reference)> > compass_conversions::parseAzimuthTopicName ( const std::string &  topic)

Autodetect azimuth representation from the name of the topic on which the message came.

Parameters
[in]topicThe topic to parse.
Returns
The autodetected parameters, or nullopt if autodetection failed.


compass_conversions
Author(s): Martin Pecka
autogenerated on Wed Jan 8 2025 04:03:12