RMVL  2.4.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::msg::JointState类 参考

JointState 消息类型:sensor/JointState 更多...

#include <rmvlmsg/sensor/joint_state.hpp>

rm::msg::JointState 的协作图:

Public 成员函数

std::string serialize () const noexcept
 消息序列化
std::size_t compact_size () const noexcept
 获取消息紧凑序列化后的大小(单位:字节)

静态 Public 成员函数

static JointState deserialize (const char *const str) noexcept
 消息反序列化

Public 属性

Header header {}
std::vector< std::string > name {}
std::vector< double > position {}
std::vector< double > velocity {}
std::vector< double > effort {}

静态 Public 属性

static constexpr const char msg_type [] = "sensor/JointState"
 消息类型字符串常量

详细描述

JointState 消息类型:sensor/JointState

成员函数说明

◆ compact_size()

std::size_t rm::msg::JointState::compact_size ( ) const
noexcept

获取消息紧凑序列化后的大小(单位:字节)

函数调用图:

◆ deserialize()

JointState rm::msg::JointState::deserialize ( const char *const str)
staticnoexcept

消息反序列化

参数
[in]str待反序列化的字符串指针
返回
反序列化得到的消息对象
函数调用图:

◆ serialize()

std::string rm::msg::JointState::serialize ( ) const
noexcept

消息序列化

返回
序列化后的字符串

类成员变量说明

◆ effort

std::vector<double> rm::msg::JointState::effort {}

◆ header

Header rm::msg::JointState::header {}

◆ msg_type

const char rm::msg::JointState::msg_type[] = "sensor/JointState"
staticconstexpr

消息类型字符串常量

◆ name

std::vector<std::string> rm::msg::JointState::name {}

◆ position

std::vector<double> rm::msg::JointState::position {}

◆ velocity

std::vector<double> rm::msg::JointState::velocity {}