Skip to content

youweicao/inertiallabs_ins-d_ros2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inertiallabs ROS2 Driver

Discarded

Nov. 2024, inertiallabs officially support ROS2. You can find here https://github.com/inertiallabs/inertiallabs-ros2-pkgs

Background

After consulting the saleperson, I got there is no official ROS2 driver for inertiallabs ins-d.

This is NON-OFFICIAL Inertiallabs ROS2 Driver, modified from official ROS1 driver.

Main modification

  1. change catkin to ament_cmake
  2. change messages names and keys to obey the rules of ROS2
  3. change some dependencies which are not supported by ROS2
  4. change some include directories due to the file organization of ROS2
  5. re-write publisher node and some pointer

Quick Start

You can use the bash shells suivant to install in your robot system.

# cd to your src
cd /path/to/your/workspace/src
# clone the repo 
[email protected]:SWJTUDEAN/inertiallabs_ins-d_ros2.git
# cd to your workspace
cd ..
# build
colcon build

Run driver

You can use the bash shells like this

# source your install file
source ./install/setup.bash
# run node
ros2 run inertiallabs_ins il_ins

To change port, please modifier the source code

# in il_ins.cpp
std::string port = node->declare_parameter<std::string>("ins_url", "serial:/dev/ttyUSB0:460800");

Visualization examples

Please install imu plugin. sudo apt install ros-humble-rviz-imu-plugin see folder .doc

About

inertiallabs ins-d ros2 drivers, modified from official

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published