Skip to content

NEO ros using neo driver, publish topic '/pc2'.

License

Notifications You must be signed in to change notification settings

luo-yq/neo-ros-pc2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neo-ros

Dependencies

  1. libneo

-. See the readme file to install it.

For a quick installation on Linux:

# clone the neo-sdk repository
# if your using new lidar, you must checkout to `newlidar` branch
git clone https://github.com/micvision/neo-sdk

# enter the libneo directory
cd neo-sdk

# create and enter a build directory
mkdir -p build
cd build

# build and install the libneo library
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
sudo cmake --build . --target install
sudo ldconfig
# then you should see libneo.so in /usr/local/lib,
# and relative *.h/*.hpp file in /usr/local/include
  1. pcl

When you install ROS, the PCL will be installed automatically.

  1. pointcloud_to_laserscan
sudo apt-get install ros-${ROS_DISTRO}-pointcloud-to-laserscan

Installation

wget https://raw.githubusercontent.com/micvision/neo-ros-pc2/master/script/installNeoROS.sh
## adding execute privileges
chmod +x installNeoROS.sh
## then install package, with a valid catkin workspace
./installNeoROS.sh (catkin workspace)

or, we can use the method step by step

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
git clone https://github.com/tyuownu/neo-ros-pc2

cd ..

catkin_make
source devel/setup.bash

Neo ROS Driver and Node

The neo_node is currently publishing a sensor_msgs/PointCloud2 msg via a topic pc2, and you can do some pointcloud processing algorithm using pcl. And the pc2 can easliy transform to scan(sensor_msgs/LaserScan msg) via pointcloud_to_laserscan package.

Usage

  1. Serial port If the serial port on your computer is not /dev/ttyUSB0, change the serial_port in launch file.

And then, give the permission to the serial port.

sudo chmod 777 /dev/ttyUSB0
  1. Run without visible(without rviz):
# with `pc2` topic
roslaunch neo_ros_pc2 neo_f1.launch
# with `scan` topic
roslaunch neo_ros_pc2 neo2scan_f1.launch
  1. Run with rviz:
# with `pc2` topic
roslaunch neo_ros_pc2 view_neo_pc2_f1.launch

# with `scan` topic
roslaunch neo_ros_pc2 view_neo_laser_scan_f1.launch

Environment

  1. OS: ubuntu 16.04

  2. ROS: Kinetic

note: Other OS and ROS should also can compile and run correct, but you should modify some files.

About

NEO ros using neo driver, publish topic '/pc2'.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 71.1%
  • C 11.4%
  • CMake 9.2%
  • Python 4.7%
  • Shell 3.6%