Read Xsens, parse and publish to ROS
- ROS1
- Python3
python3 -m pip install -r requirements.txt
Modify ReadIMU.py
Connect Xsens with xsens.ConnectWithSerialNumber("SERIAL_NUMBER")
with device SERIAL_NUMBER
or
Connect Xsens with xsens.ConnectWithDeviceName("SERIAL_PORT")
with device port number
Run python script
python3 ReadIMU.py
python3 GetAvailableImu.py
python3 -m pip install -r requirements_ros.txt
After catkin_make and source setup.bash:
DB5SGYLL in this example
rosrun xsens_sdk ReadIMU_ros.py _serial_number:=DB5SGYLL
DB5SGYLL in this example
rosrun xsens_sdk ReadIMU_ros.py _serial_port:="/dev/ttyUSB0"
If both _serial_port and _serial_number are given, _serial_port option will be ignored.
rosrun xsens_sdk GetAvailableImu.py
- geometry_msgs/QuaternionStamped