Skip to content

astuff/pacmod3

Repository files navigation

PACMod3 (Platform Actuation and Control MODule) ROS Driver

CircleCI

This ROS node is designed to allow the user to control a vehicle (see SUPPORTED VEHICLES below) with the PACMod drive-by-wire system, board revision 3. The main purpose of the driver is to provide a common ROS API to PACMod devices regardless of vehicle type or specific PACMod version in use.

For access to the DBC file which defines the CAN interface for the PACMod, see the pacmod_dbc repo.

Installation

Install pacmod3 using our debian repository:

sudo apt install apt-transport-https
sudo sh -c 'echo "deb [trusted=yes] https://s3.amazonaws.com/autonomoustuff-repo/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/autonomoustuff-public.list'
sudo apt update
sudo apt install ros-$ROS_DISTRO-pacmod3

Note: Previously the pacmod3 driver was released via the ROS buildfarm. This has changed as of Ubuntu 20.04 (ROS2 Foxy and ROS1 Noetic) to keep old package versions available for download, which gives users greater control over their installed software and also allows downgrades if an upgrade breaks software dependencies.

ROS API

The driver will automatically adapt the ROS API (published and subscribed topics) according to what data the PACMod system supports. Please consult the PACMod user manual you received with your vehicle in order to determine what types of data the PACMod system is able to send and receive.

Launch Arguments

  • dbc_major_version: This should be set to match the DBC version of your PACMod system. See the "Supported Vehicles" section at the bottom of this README for more details.
  • use_kvaser: Set this to true if a Kvaser CAN device is being used with Kvaser canlib drivers to connect to the PACMod. Defaults to false.
  • kvaser_hardware_id: The hardware id of the kvaser device, only applies if use_kvaser is true.
  • kvaser_circuit_id: The circuit/channel id that the PACMod is plugged into on the kvaser device, only applies if use_kvaser is true.
  • use_socketcan: Set this to true if Linux SocketCAN drivers are being used to connect to the PACMod. Defaults to false.
  • socketcan_device: The device id of the SocketCAN channel the PACMod is plugged into, only applies if use_socketcan is true.
  • namespace: The namespace of the PACMod driver, topics will be namespaced accordingly. Defaults to pacmod.

Published Topics

Topics published on all platforms:

Topics published on supported platforms only:

Subscribed Topics

Topics subscribed on all platforms:

Topics subscribed on supported platforms only:

Supported Vehicles

At the moment, this pacmod3 driver supports DBC versions 3 through 12 for a core set of common messages. This means not all vehicle-specific CAN messages are currently supported. If you need a specific CAN message to be supported please open an issue here.

If you are unsure about which DBC version your existing PACMod supports, please reach out to our support team: https://autonomoustuff.com/support