38 #ifndef YARP_ROSMSG_sensor_msgs_MultiDOFJointState_h
39 #define YARP_ROSMSG_sensor_msgs_MultiDOFJointState_h
60 std::vector<yarp::rosmsg::geometry_msgs::Transform>
transforms;
61 std::vector<yarp::rosmsg::geometry_msgs::Twist>
twist;
62 std::vector<yarp::rosmsg::geometry_msgs::Wrench>
wrench;
101 for (
int i=0; i<len; i++) {
112 for (
int i=0; i<len; i++) {
121 for (
int i=0; i<len; i++) {
130 for (
int i=0; i<len; i++) {
158 for (
int i=0; i<len; i++) {
172 for (
int i=0; i<len; i++) {
184 for (
int i=0; i<len; i++) {
196 for (
int i=0; i<len; i++) {
236 for (
size_t i=0; i<
twist.size(); i++) {
244 for (
size_t i=0; i<
wrench.size(); i++) {
283 for (
size_t i=0; i<
twist.size(); i++) {
292 for (
size_t i=0; i<
wrench.size(); i++) {
315 static constexpr
const char*
typeName =
"sensor_msgs/MultiDOFJointState";
318 static constexpr
const char*
typeChecksum =
"690f272f0640d2631c305eeb8301e59d";
322 # Representation of state for joints with multiple degrees of freedom, \n\
323 # following the structure of JointState.\n\
325 # It is assumed that a joint in a system corresponds to a transform that gets applied \n\
326 # along the kinematic chain. For example, a planar joint (as in URDF) is 3DOF (x, y, yaw)\n\
327 # and those 3DOF can be expressed as a transformation matrix, and that transformation\n\
328 # matrix can be converted back to (x, y, yaw)\n\
330 # Each joint is uniquely identified by its name\n\
331 # The header specifies the time at which the joint states were recorded. All the joint states\n\
332 # in one message have to be recorded at the same time.\n\
334 # This message consists of a multiple arrays, one for each part of the joint state. \n\
335 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
336 # wrench associated with them, you can leave the wrench array empty. \n\
338 # All arrays in this message should have the same size, or be empty.\n\
339 # This is the only way to uniquely associate the joint name with the correct\n\
344 string[] joint_names\n\
345 geometry_msgs/Transform[] transforms\n\
346 geometry_msgs/Twist[] twist\n\
347 geometry_msgs/Wrench[] wrench\n\
349 ================================================================================\n\
350 MSG: std_msgs/Header\n\
351 # Standard metadata for higher-level stamped data types.\n\
352 # This is generally used to communicate timestamped data \n\
353 # in a particular coordinate frame.\n\
355 # sequence ID: consecutively increasing ID \n\
357 #Two-integer timestamp that is expressed as:\n\
358 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
359 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
360 # time-handling sugar is provided by the client library\n\
362 #Frame this data is associated with\n\
367 ================================================================================\n\
368 MSG: geometry_msgs/Transform\n\
369 # This represents the transform between two coordinate frames in free space.\n\
371 Vector3 translation\n\
372 Quaternion rotation\n\
374 ================================================================================\n\
375 MSG: geometry_msgs/Vector3\n\
376 # This represents a vector in free space. \n\
377 # It is only meant to represent a direction. Therefore, it does not\n\
378 # make sense to apply a translation to it (e.g., when applying a \n\
379 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
380 # rotation). If you want your data to be translatable too, use the\n\
381 # geometry_msgs/Point message instead.\n\
386 ================================================================================\n\
387 MSG: geometry_msgs/Quaternion\n\
388 # This represents an orientation in free space in quaternion form.\n\
395 ================================================================================\n\
396 MSG: geometry_msgs/Twist\n\
397 # This expresses velocity in free space broken into its linear and angular parts.\n\
401 ================================================================================\n\
402 MSG: geometry_msgs/Wrench\n\
403 # This represents force in free space, separated into\n\
404 # its linear and angular parts.\n\
#define BOTTLE_TAG_STRING
An interface for reading from a network connection.
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
virtual bool isError() const =0
An interface for writing to a network connection.
virtual bool isError() const =0
virtual bool isBareMode() const =0
Check if the connection is bare mode.
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
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.
static Type byName(const char *name)
Type & addProperty(const char *key, const Value &val)
A single value (typically within a Bottle).
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool write(const yarp::os::idl::WireWriter &writer) const
IDL-friendly connection reader.
yarp::rosmsg::std_msgs::Header header
bool readBottle(yarp::os::ConnectionReader &connection) override
yarp::os::Type getType() const override
std::vector< std::string > joint_names
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * typeChecksum
std::vector< yarp::rosmsg::geometry_msgs::Transform > transforms
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::MultiDOFJointState > rosStyle
std::vector< yarp::rosmsg::geometry_msgs::Twist > twist
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::MultiDOFJointState > bottleStyle
std::vector< yarp::rosmsg::geometry_msgs::Wrench > wrench
bool readBare(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeName
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeText
bool writeBare(yarp::os::ConnectionWriter &connection) const override
The main, catch-all namespace for YARP.