Documentation Index
Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt
Use this file to discover all available pages before exploring further.
Source:
integrations/ros2_bridge/README.mdros2_bridge
Channel Compatibility (PCAN + slcan + Damiao Serial Bridge)
- Linux SocketCAN uses interface names directly:
can0,can1,slcan0. - For USB-serial CAN adapters, bring up
slcan0first:sudo slcand -o -c -s8 /dev/ttyUSB0 slcan0 && sudo ip link set slcan0 up. - Damiao-only serial bridge transport is also available in CLI (
--transport dm-serial --serial-port /dev/ttyACM0 --serial-baud 921600). - Full Damiao serial-bridge interface list and command patterns are documented in
motor_cli/README.md(section3.6inmotor_cli/README.zh-CN.md). - On Linux SocketCAN, do not append bitrate in
--channel(for examplecan0@1000000is invalid). - On Windows (PCAN backend),
can0/can1map toPCAN_USBBUS1/2; optional@bitratesuffix is supported.
motorbridge using Python (rclpy) + existing motorbridge Python SDK bindings.
Features
- Subscribe command topic and execute motor commands
- Publish motor state periodically
- Expose operational commands via same command topic:
scanset_idverify
Topics
- Subscribed:
/motorbridge/cmd(std_msgs/String, JSON payload) - Published:
/motorbridge/state(std_msgs/String, JSON payload)/motorbridge/event(std_msgs/String, JSON payload)
Command JSON
Control:Run
Prerequisites:- ROS2 installed (
rclpy,std_msgs) motorbridgePython package importable
Publish command examples
Notes
continuous=truemeans command is resent at each timer tick (--dt-ms).enable/disable/scan/set_id/verifyare one-shot operations.