Closed1

rospy, rclpyのメッセージ型

eduidleduidl

Primitive

type ROS1 ROS2
bool bool bool
byte int bytes
char/int/uint int int
float float float
string str str
wstring - str

Array

type ROS1 ROS2
array/seq of bool list<bool> list<bool>
array/seq of byte tuple<int> list<bytes>
array of int tuple<int> array.array
seq of int tuple<int> numpy.ndarray
array/seq of uint8/char bytes -
array of float tuple<float> array.array
seq of float tuple<float> numpy.ndarray
array/seq of str tuple<str> list<str>

ROS2 の numpy.ndarray の dtype, array.array の typecode はどちらも元の型に準ずる

このスクラップは2022/07/16にクローズされました