跳到主要内容

CylinderPrimitive

表示圆柱体、椭圆圆柱体或截锥的图元。

父级数据结构

CylinderPrimitive 出现在 SceneEntity 消息数据结构中。

数据结构

字段类型描述
posepose圆柱体中心的位置和圆柱体的方向。平面(面)垂直于 z 轴。
sizeVector3圆柱体边界框的大小
bottom_scalefloat640-1,圆柱体底面(最小 z 值)直径与边界框底部的比率
top_scalefloat640-1,圆柱体顶面(最大 z 值)直径与边界框顶部的比率
colorcolor圆柱体的颜色

参考实现

可视化数据结构是框架无关的,可以使用任何支持的消息编码来实现:

编码方式数据结构
ROS 1foxglove_msgs/CylinderPrimitive
ROS 2foxglove_msgs/msg/CylinderPrimitive
JSONfoxglove.CylinderPrimitive
Protobuffoxglove.CylinderPrimitive
FlatBuffersfoxglove.CylinderPrimitive
OMG IDLfoxglove::CylinderPrimitive

您必须使用上述指定的数据结构名称,以便可视化能够识别该数据结构。