|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
39 #ifndef YARP_ROSMSG_sensor_msgs_Imu_h
40 #define YARP_ROSMSG_sensor_msgs_Imu_h
177 for (
int i=0; i<len; i++) {
192 for (
int i=0; i<len; i++) {
207 for (
int i=0; i<len; i++) {
324 static constexpr
const char*
typeName =
"sensor_msgs/Imu";
327 static constexpr
const char*
typeChecksum =
"6a62c6daae103f4ff57a132d6f95cec2";
331 # This is a message to hold data from an IMU (Inertial Measurement Unit)\n\
333 # Accelerations should be in m/s^2 (not in g's), and rotational velocity should be in rad/sec\n\
335 # If the covariance of the measurement is known, it should be filled in (if all you know is the \n\
336 # variance of each measurement, e.g. from the datasheet, just put those along the diagonal)\n\
337 # A covariance matrix of all zeros will be interpreted as \"covariance unknown\", and to use the\n\
338 # data a covariance will have to be assumed or gotten from some other source\n\
340 # If you have no estimate for one of the data elements (e.g. your IMU doesn't produce an orientation \n\
341 # estimate), please set element 0 of the associated covariance matrix to -1\n\
342 # If you are interpreting this message, please check for a value of -1 in the first element of each \n\
343 # covariance matrix, and disregard the associated estimate.\n\
347 geometry_msgs/Quaternion orientation\n\
348 float64[9] orientation_covariance # Row major about x, y, z axes\n\
350 geometry_msgs/Vector3 angular_velocity\n\
351 float64[9] angular_velocity_covariance # Row major about x, y, z axes\n\
353 geometry_msgs/Vector3 linear_acceleration\n\
354 float64[9] linear_acceleration_covariance # Row major x, y z \n\
356 ================================================================================\n\
357 MSG: std_msgs/Header\n\
358 # Standard metadata for higher-level stamped data types.\n\
359 # This is generally used to communicate timestamped data \n\
360 # in a particular coordinate frame.\n\
362 # sequence ID: consecutively increasing ID \n\
364 #Two-integer timestamp that is expressed as:\n\
365 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
366 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
367 # time-handling sugar is provided by the client library\n\
369 #Frame this data is associated with\n\
374 ================================================================================\n\
375 MSG: geometry_msgs/Quaternion\n\
376 # This represents an orientation in free space in quaternion form.\n\
383 ================================================================================\n\
384 MSG: geometry_msgs/Vector3\n\
385 # This represents a vector in free space. \n\
386 # It is only meant to represent a direction. Therefore, it does not\n\
387 # make sense to apply a translation to it (e.g., when applying a \n\
388 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
389 # rotation). If you want your data to be translatable too, use the\n\
390 # geometry_msgs/Point message instead.\n\
410 #endif // YARP_ROSMSG_sensor_msgs_Imu_h
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::Imu > rosStyle
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::Imu > bottleStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
std::vector< yarp::conf::float64_t > angular_velocity_covariance
virtual void appendFloat64(yarp::conf::float64_t data)=0
Send a representation of a 64-bit floating point number to the network connection.
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
std::vector< yarp::conf::float64_t > linear_acceleration_covariance
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::rosmsg::geometry_msgs::Quaternion orientation
yarp::rosmsg::geometry_msgs::Vector3 angular_velocity
bool readBare(yarp::os::ConnectionReader &connection) override
virtual yarp::conf::float64_t expectFloat64()=0
Read a 64-bit floating point number from the network connection.
virtual bool isError() const =0
static Type byName(const char *name)
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
Type & addProperty(const char *key, const Value &val)
static constexpr const char * typeChecksum
An interface for writing to a network connection.
virtual bool isError() const =0
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * typeText
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
yarp::rosmsg::geometry_msgs::Vector3 linear_acceleration
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
IDL-friendly connection reader.
An interface for reading from a network connection.
#define BOTTLE_TAG_FLOAT64
std::vector< yarp::conf::float64_t > orientation_covariance
The main, catch-all namespace for YARP.
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
yarp::rosmsg::std_msgs::Header header
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
A single value (typically within a Bottle).
static constexpr const char * typeName
yarp::os::Type getType() const override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual bool write(const yarp::os::idl::WireWriter &writer) const