This is a continuation of the raptor_dbw_ros repo but in ROS2.
This is the product of transferring the ROS1 codebase to ROS2.
This repository contains a collection of ROS2 packages which allow DBW kit developers to quickly implement a generic ROS2 node for interacting with the New Eagle Raptor controller.
- can_dbc_parser - module for handling everything related to translating CAN messages to ROS
- raptor_dbw_can - DBW CAN driver
- raptor_dbw_joystick - a demo that allows you to use a game controller to interact with the DBW ROS2 node
- raptor_dbw_msgs - DBW ROS2 message definitions
- raptor_pdu - power distribution unit (PDU) driver. The PDU is a separate CAN-enabled device that's part of New Eagle's product line.
- raptor_pdu_msgs - PDU ROS2 message definitions
raptor-dbw-ros2 is being officially released through the ROS Build Farm.
Latest release version is foxy-1.2.0.
raptor-dbw-ros2 can be built from source using colcon build. It also requires package kvaser-interface.
- Create a ROS2 workspace. Instructions below assume the workspace was created in directory YourWorkspace.
- cd YourWorkspace/src
- git clone https://github.com/NewEagleRaptor/raptor-dbw-ros2.git
- Make sure kvaser-interface is built and installed first. You can get it from github:
- From inside YourWorkspace/src:
- git clone https://github.com/astuff/kvaser_interface.git
- cd kvaser-interface
- git checkout ros2-master
- From inside YourWorkspace/src:
- clone this repository (see "Building from source")
- modify the launch parameters file in raptor_dbw_can/launch/launch_params.yaml
- "hardware_id" is the serial number (S/N) for the kvaser hardware. This must match your hardware.
- "circuit_id" is the can channel number (0-n)
- in the terminal, with the path set to the base of the workspace:
- colcon build --packages-up-to raptor_dbw_can
- ros2 launch raptor_dbw_can raptor_dbw_can_launch.py