Giter Site home page Giter Site logo

cepton_ros's Introduction

Cepton ROS

Overview

This package provides ROS support for the Cepton SDK.

Before using this ROS driver, we recommend that you download CeptonViewer to test your sensor setup.

Compatibility

Currently, this driver only works on Ubuntu (>=16.04).

Installation

If you have not done so already, install ROS, and create a catkin workspace.

Change to the catkin workspace directory.

Clone the repository.

git clone --recursive https://github.com/ceptontech/cepton_ros.git src/cepton_ros

Run catkin make.

catkin_make

Source the catkin setup script.

source devel/setup.bash

Getting started

Connect the sensor's ethernet cable to the host computer (we recommend using a USB -> Ethernet adapter). The sensor IP address is of the form 192.168.*.*, and it sends UDP broadcast packets on port 8808. The sensor will start sending packets as soon as the power is connected.

On Ubuntu, it is necessary to assign a static IP address to the host computer's Ethernet interface, e.g. IP=192.168.0.1, Netmask=255.255.0.0. This can be done through the Network Manager GUI.

First, try viewing the sensor in CeptonViewer, to ensure that it is connected properly. Then, launch the ROS demo (roscore must be running already).

roslaunch cepton_ros demo.launch

A rviz window should popup showing a sample point cloud.

To launch the driver standalone, you need to first launch the nodelet manager

roslaunch cepton_ros manager.launch

Then, you can launch the driver

roslaunch cepton_ros driver.launch

You can print a help menu for the driver launcher

roslaunch --ros-args cepton_ros driver.launch

Using multiple sensors

If the transforms_path parameter is passed, the driver will output each sensor point cloud with a unique tf frame id.

roslaunch cepton_ros driver.launch transforms_path:=<path_to_cepton_transforms.json>

A sample transforms file can be found at launch/settings/cepton_transforms.json. The rotation is in Quaternion format <x, y, z, w>. The coordinate system is as follows: +x = right, +y = forward, +z = up.

Capture Replay

Refer to the launch files in tests for examples on how to replay data from PCAP capture files.

Troubleshooting

First, try viewing the sensor in CeptonViewer to determine if the issue is ROS or the sensor/network.

The most common issue is the host computer blocking the sensor packets. Using Wireshark, or another networking tool, check that you are receiving packets on port 8808. If you not, check your networking/firewall settings.

Reference

Driver nodelet

The driver nodelet is a thin wrapper around the Cepton SDK. The point type definitions can be found in include/cepton_ros/point.hpp.

cepton_ros's People

Contributors

spectralflight avatar

Watchers

 avatar  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.