ros2--服务接口

std_msgs/msg/Header

# Standard metadata for higher-level stamped data types.
# This is generally used to communicate timestamped data
# in a particular coordinate frame.

# Two-integer timestamp that is expressed as seconds and nanoseconds.
#stamp--时间戳,两个成员:秒和纳秒
builtin_interfaces/Time stamp
        int32 sec
        uint32 nanosec

# Transform frame with which this data is associated.
#
string frame_id

作用:

sensor/msg/JointState

# This is a message that holds data to describe the state of a set of torque controlled joints.
#
# The state of each joint (revolute or prismatic) is defined by:
#  * the position of the joint (rad or m),
#  * the velocity of the joint (rad/s or m/s) and
#  * the effort that is applied in the joint (Nm or N).
#
# Each joint is uniquely identified by its name
# The header specifies the time at which the joint states were recorded. All the joint states
# in one message have to be recorded at the same time.
#
# This message consists of a multiple arrays, one for each part of the joint state.
# The goal is to make each of the fields optional. When e.g. your joints have no
# effort associated with them, you can leave the effort array empty.
#
# All arrays in this message should have the same size, or be empty.
# This is the only way to uniquely associate the joint name with the correct
# states.

std_msgs/Header header
        builtin_interfaces/Time stamp
                int32 sec
                uint32 nanosec
        string frame_id

string[] name
float64[] position
float64[] velocity
float64[] effort

- `string[] name`:机器人关节的名称,为一个字符串数组;

- `float64[] position`:机器人关节的位置,为一个双精度浮点数数组;

- `float64[] velocity`:机器人关节的速度,为一个双精度浮点数数组;

- `float64[] effort`:机器人关节的力/扭矩,为一个双精度浮点数数组。

相关推荐

  1. ros2--服务接口

    2024-07-23 01:24:02       14 阅读
  2. ROS2】实现自定义服务接口

    2024-07-23 01:24:02       43 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-23 01:24:02       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-23 01:24:02       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-23 01:24:02       45 阅读
  4. Python语言-面向对象

    2024-07-23 01:24:02       55 阅读

热门阅读

  1. C/C++内存管理笔记

    2024-07-23 01:24:02       13 阅读
  2. GraphRAG的实践

    2024-07-23 01:24:02       10 阅读
  3. 简单三步实现跨境多种支付

    2024-07-23 01:24:02       11 阅读
  4. 二维数组与指针

    2024-07-23 01:24:02       15 阅读
  5. Nougat - 学术文档PDF解析(LaTeX数学、表格)

    2024-07-23 01:24:02       16 阅读
  6. linux发送邮件实测

    2024-07-23 01:24:02       17 阅读
  7. 微服务:OpenFeign

    2024-07-23 01:24:02       21 阅读
  8. uniapp锚点点击-页面跳转

    2024-07-23 01:24:02       9 阅读
  9. 解决git 不同branch 下node_moudes不同步的问题

    2024-07-23 01:24:02       12 阅读
  10. LLaMA: 开源的大规模语言模型

    2024-07-23 01:24:02       15 阅读
  11. Docker 深度解析:从入门到精通

    2024-07-23 01:24:02       12 阅读