CHAPTER 2. USBOARD-USS5
2.8. ROS 2 NODE
cd neo_usboard_v2-2
git submodule update --init
4. Install
vnx-base
onto your system.
• ROS Foxy:
sudo dpkg -i vnx-base/x86_64/vnx-base-1.9.3-x86_64-ubuntu-20.04.deb
5. Compile your workspace:
cd your_catkin_workspace
colcon build --symlink-install
. install/setup.bash
2.8.2 Launch
In case of using CAN, the bus needs to be configured first:
sudo ip link set can0 down
sudo ip link set can0 type can bitrate 1000000
sudo ip link set can0 up
To launch the USBoard-USS5 ROS node use:
ros2 launch neo_usboard_v2 neo_usboard_v2.launch.py
2.8.3 Parameters
The following parameters can be changed according to your needs in
neo_usboard_v2.yaml
:
Parameter
Value
Note
can_id
1024
Needs to be a multiple of 32.
can_device
None or can0
serial_port
/dev/ttyUSB0
can_baud_rate
1000000 (bit/s)
Needs to match what is configured on the board.
update_rate
5 (Hz)
Relevant only in transmit mode “Request”, see USBoardV2 GUI.
Note:
If
can_device
is set, the CAN bus will be used for communication, otherwise the serial interface specified
in
serial_port
is used.
The following parameters can be changed from the parameter server once the ros2 node is executed.
27