Skip to main content
Version: V2.0.5.1

8.1 Product Serial Number


8.1.1 Command Line Query​

Note: Valid on x86 only.

xsn

8.1.2 ROS Interface​

8.1.2.1 ROS Service Definition​

# xsys_msgs/srv/GetSerialNumber.srv
string SERVICE_NAME=/xsys/get_serial_number
---
string serial_number

8.1.2.2 Package Configuration​

<package format="3">
<depend>xsys_msgs</depend>
</package>

8.1.2.3 CMake Configuration​

find_package(xsys_msgs REQUIRED)

ament_target_dependencies(
<your_target>
xsys_msgs
)

8.1.2.4 Setup​

The xsys_msgs package is provided in ros2ws on x86 and in lyre_ros2 on Orin.
Before building or running your own ROS program, source the setup.bash file from the xsys_msgs package.

# x86
source ros2ws/install/setup.bash

# Orin
source lyre_ros2/install/setup.bash