ros2 / ros1_bridge

ROS 2 package that provides bidirectional communication between ROS 1 and ROS 2
Apache License 2.0
421 stars 274 forks source link

Mapping rules file for nested custom messages #417

Open shannenlolol opened 9 months ago

shannenlolol commented 9 months ago

Hi, I would like to ask how should a mapping rules file be for a nested custom message.

For example, I have a SystemStatus message that contains a BatteryStatus message:

SystemStatus: BatteryStatus batterystatus bool manualmode bool remotenosignal

BatteryStatus: float32 voltage float32 current float32 capacity bool incharge

How should I write fileds_1_to_2? Thank you!

Screenshot from 2023-09-19 10-23-05