Coder Social home page Coder Social logo

tienhoangvan / rplidar_ros2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allenh1/rplidar_ros

0.0 0.0 0.0 429 KB

rplidar_ros2 rplidar ros2

License: BSD 2-Clause "Simplified" License

CMake 0.55% Shell 0.37% C++ 90.06% C 7.11% Python 1.91%

rplidar_ros2's Introduction

RPLIDAR ROS package

ROS node and test application for RPLIDAR

Visit following Website for more details about RPLIDAR:

rplidar roswiki: http://wiki.ros.org/rplidar

rplidar HomePage: http://www.slamtec.com/en/Lidar

rplidar SDK: https://github.com/Slamtec/rplidar_sdk

rplidar Tutorial: https://github.com/robopeak/rplidar_ros/wiki

How to build rplidar ros package

1) Clone this project to your colcon workspace src folder
2) Install Eloquent ROS2 and colcon compiler.
source /opt/ros/eloquent/setup.sh
colcon build --symlink-install

How to run rplidar ros package

There're two ways to run rplidar ros package Note! Just test for RPLIDAR A1/A2,not test A3 and S1,need your test. I. Run rplidar node and view in the rviz

At first console,

source ./install/setup.bash
ros2 run rplidar_ros rplidarNode 

At second console,

source ./install/setup.bash
ros2 run tf2_ros static_transform_publisher 0 0 0 0 0 0  world laser_frame  

At third console,

source ./install/setup.bash
rviz2 ./install/rplidar_ros/share/rplidar_ros/rviz/rplidar.rviz

Rviz set, note! set frame into laser_frame ,not laser add laser scan You should see rplidar's scan result in the rviz.

II. Run rplidar node and view using test application

source ./install/setup.bash
ros2 run rplidar_ros rplidarNodeClient 

You should see rplidar's scan result in the console

Notice: the different is serial_baudrate between A1/A2 and A3/S1

RPLidar frame

RPLidar frame must be broadcasted according to picture shown in rplidar-frame.png

rplidar_ros2's People

Contributors

robopeak avatar linling avatar kintzhao avatar allenh1 avatar afrancescon avatar stonier avatar awesomebytes avatar tony-slamtec avatar wubinxia avatar youngday avatar rotu avatar jlblancoc avatar k-okada avatar

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.