Giter Club home page Giter Club logo

livox_laser_simulation_ros2's Introduction

livox_laser_simulation for ROS2

This is a ros2 port of the original repo: https://github.com/Livox-SDK/livox_laser_simulation.

Tested in ros2 foxy and humble.

In this simulation project, Livox series lidars will publish two types of messages:

livox_ros_driver2/msg/CustomMsg
sensor_msgs/msg/PointCloud2

Therefore, by subscribing to the CustomMsg message, you can use the FAST_LIO algorithm in the your simulation.

poincloud2

Install

  1. Clone this repo in your ros2 workspace

    git clone https://github.com/LihanChen2004/livox_laser_simulation_ros2.git
    
  2. Follow livox_ros_driver2 Installation

  3. build your ros2 workspace (if there are warnings that do not allow the compilation, run the build again and you will see that the error disappears)

    colcon build && source install/setup.bash
    

Usage

  1. include the lidar sensor in your URDF file, for example:

    <xacro:include filename="$(find ros2_livox_simulation)/urdf/mid70.xacro" />
    
  2. attach the sensor to your robot in the URDF (or xacro) file, for example:

      <xacro:mid70 name="livox" parent="base_link" topic="mid70">
        <origin xyz="0 0 0.025" rpy="0 0 0"/>
      </xacro:mid70>
    

    you need to specify the parent link (usually base_link)

    that's it. the example that i gave you is for mid70, but you can use mid40, mid70, mid360 and so on.

    thanks to the original repo, you can find more info in it.

Example

  • PB_RMSimulation

    ROS2-Gazebo simulation package for RoboMaster University Championship

    You can use FAST_LIO by taking it as an example :)

    fastlio_pointcloud

livox_laser_simulation_ros2's People

Contributors

stm32f303ret6 avatar lihanchen2004 avatar

Stargazers

 avatar

Forkers

lcas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.