颜色
RGBA 格式的颜色。
面板支持
父级架构
Color
出现在 ArrowPrimitive
、 CircleAnnotation
、 CubePrimitive
、 CylinderPrimitive
、 LinePrimitive
、 ModelPrimitive
、 PointsAnnotation
、 SpherePrimitive
、 TextAnnotation
、 TextPrimitive
、 TriangleListPrimitive
消息模式中。
字段定义
字段名 | 类型 | 描述 |
---|---|---|
r | float64 | 红色,数值介于 0 和 1 之间 |
g | float64 | 绿色,数值介于 0 和 1 之间 |
b | float64 | 蓝色,数值介于 0 和 1 之间 |
a | float64 | 透明度,数值介于 0 和 1 之间 |
参考
coScene 的架构类型(schemas)是与框架无关的,可以使用任何受支持的消息编码格式来实现。
编码格式 | Schema 名称 |
---|---|
ROS 1 | foxglove_msgs/Color |
ROS 2 | foxglove_msgs/msg/Color |
JSON | foxglove.Color |
Protobuf | foxglove.Color |
FlatBuffers | foxglove.Color |
OMG IDL | foxglove::Color |
注意:必须使用上述指定的 schema 名称,coScene 才能正确识别。