CHAPTER 2. USBOARD-USS5
2.7. ROS NODE
2.7.4 Topics
The following ROS topics are available:
Name
Type
/usboard_v2/measurements
neo_msgs/msgs/USBoardV2
/usboard_v2/sensor1
sensor_msgs/Range
/usboard_v2/sensor2
sensor_msgs/Range
. . .
/usboard_v2/sensor16
sensor_msgs/Range
2.7.5 Multiple USBoards
In case of using multiple USBoard-USS5 simultaneously, it is possible to start multiple ROS nodes, one for each
board.
2.7.5.1 Parameters
Each ROS node needs its own yaml configuration file, see for example
neo_usboard_v2.yaml
and
neo_usboard_v2_1.yaml
in
https://github.com/neobotix/neo_usboard_v2/tree/main/launch
can_id
: 1024
can_device
: None
#can_device: can0
serial_port
: /dev/ttyUSB0
can_baud_rate
: 1000000
update_rate
: 5
topic_path
: /usboard_v2
can_id
: 1056
can_device
: None
#can_device: can1
serial_port
: /dev/ttyUSB1
can_baud_rate
: 1000000
update_rate
: 5
topic_path
: /usboard_v2_1
Note:
CAN IDs need to be a multiple of
0x20
, ie.
32
in decimal.
2.7.5.2 Launching Multiple ROS Nodes
The standard launch file
neo_usboard_v2.launch
contains an example on how to start another ROS node:
<?xml version="1.0"?>
<launch>
<!-- Load usboard_v2 params -->
<rosparam
command="load" ns="usboard_v2" file="$(find neo_usboard_v2)/launch/neo_
˓
→
usboard_v2.yaml"
/>
<!-- start usboard_v2 node -->
<node
pkg="neo_usboard_v2" type="neo_usboard_v2" ns="usboard_v2" name="usboard_v2_
˓
→
node" respawn="false" output="screen"
/>
(continues on next page)
25