I'm trying to publish a sensor_msgs/Imu message, but it seems that the rosbridge gets hung up on the orientation_covariance field, which is of type double[9].
[ERROR] [rosbridge_websocket]: [Client 0] publish: sensor_msgs/Imu message requires a double[9] for field orientation_covariance, but got a <class 'list'> @ _to_object_inst
Here's the json that I've sent, is there something wrong?:
{"op":"publish","topic":"/imu_raw","msg":{"header":{"stamp":{"sec":1587154682,"nanosec":508394240},"frame_id":"imu"},"orientation":{"x":0.000125964405015111,"y":0.000125781516544521,"z":0.707106590270996,"w":0.707106947898865},"orientation_covariance":[0,0,0,0,0,0,0,0,0],"angular_velocity":{"x":1.54979915123477E-07,"y":-6.26098639600059E-08,"z":7.72354888378679E-11},"angular_velocity_covariance":[0,0,0,0,0,0,0,0,0],"linear_acceleration":{"x":-0.00349057815037668,"y":-2.56077805715904E-06,"z":-9.80999851226807},"linear_acceleration_covariance":[0,0,0,0,0,0,0,0,0]}}
Thanks for the help!