Ros2 driver for the Microstrain MV5 J1939 CAN Driver. This includes a ros2 node and a ros2_control sensor interface
make sure can-utils is installed (on bare-metal as well as your docker, just to make sure)
-
Get a Microastrain MV5-AR J1939 IMU
-
Physically connect and power the sensor
-
Set up a CAN port on the host machine
-
For a PEAK CAN device:
sudo ip link set can0 up type can bitrate 250000 dbitrate 2000000 fd on fd-non-iso on -
For a Lawicel CANusb:
sudo slcand -o -c -f -s5 /dev/ttyUSB0 can0sudo ifconfig can0 up -
For a Virtual CAN network:
ip link add dev vcan0 type vcanip link set up vcan0
-
-
Modify
microstrain_mv5_can_driver/config/socketcan_params.yamlfor your interface (e.g.can0) -
Modify
microstrain_mv5_can_driver/config/microstrain_mv5_can_params.yamlfor your device's id- This is the last two digits in the identifier of the sensor's CAN frame (e.g. E5) converted to decimal
-
Launch
ros2 launch microstrain_mv5_can_driver microstrain_mv5_can.launch.py
Definition: Resets the attitude of the device through a PGN
Example: put_example_service
- Can address claim init output ->
can0 18EEFFE5 [8] 00 00 20 47 00 91 00 20