GithubHelp home page GithubHelp logo

slaghuis / ros2-vl53l1x Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 3.0 54 KB

A ROS2 Node to run on a Raspberry Pi (Possibly other Linux based computers as well). Reads the VL53L1X via I2C and publishes a sensor_msgs/msg/Range message.

License: Apache License 2.0

CMake 1.86% C++ 98.14%
vl53l1x ros-foxy raspberry-pi ros2

ros2-vl53l1x's Introduction

ROS2-VL53L1X

A ROS2 Node to run on a Raspberry Pi. Reads the VL53L1X via I2C and publishes a sensor_msgs/msg/Range topic. Uses the library written for the VL53L1X I2C Distance.

Development environment specifics: Raspberry Pi 3 Ubuntu 20.04.2 LTS

Installation

Wire the sensor as per manufacturers specifications. Enable the i2c port on the Raspberry Pi. A good exmple can be found at Sparkfun Raspberry Pi SPI and I2C Tutorial. Ensure that the user that will run the ROS node is in the correct group.

sudo usermod -aG i2c ubuntu

Clone this repo into the src directory of your ROS2 workspace. See the ros2 tutorial on how to create a workspace.

git clone https://github.com/slaghuis/ROS2-VL53L1X.git

Back in the root of your ROS workspace, build and install the package.

colcon build --packages-select vl53l1x
. install/setup.bash

Run the package

ros2 run vl53l1x vl53l1x_node

See the output in a seperate terminal

ros2 topic echo vl53l1x/range

ros2-vl53l1x's People

Contributors

slaghuis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ros2-vl53l1x's Issues

average ranging data

hello sir, I have question to ask. Since I'm just new with ROS, I wanted to ask how can I get the average of the range measured? Thank you

error

Hello. I connect the VL53L1 sensor with raspberry pi 4 and after install with ROS package it's give me error said sensor offline. Can you help me with this error? Thank you.

how to make visible this node in rviz2

Hello, I have an issue .
I wrote a node for vl53l1x it publishes messages but in rviz2 I can't see anything when I choose topic. I got error (under) so I tried to yours and I met same error. Do you know why? I am new to ros I need help.

I am trying to make visible sensor_msgs::range messages on rviz2 but I am getting this error:

[INFO] [1661149881.097471981] [rviz]: Message Filter dropping message: frame 'vl53l1x' at time 1661149880.305 for reason 'discarding message because the queue is full'

I fix this error but now I am getting this error

Fixed Frame
No tf data. Actual error: Frame [vl53l1x] does not exist

In status I can see messages received but doesn't display anything

Install

Hello. I'm new to ROS and currently I'm using VL53L1X with ROS2. Can you explain about the installation? Thank you

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.