Code Monkey home page Code Monkey logo

Comments (5)

okalachev avatar okalachev commented on June 19, 2024

Hi!

You may try to debug your I2C bus using i2c-tools.

Get list of I2C busses - i2cdetect -l:

i2c-1   i2c             bcm2835 (i2c@7e804000)                  I2C adapter

Get list of devices on the bus 1 - i2cdetect -y 1:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --          

You can see the device with address 0x29, which is the rangefinder.

from vl53l1x_ros.

lurunawjan avatar lurunawjan commented on June 19, 2024

Thank you for your reply. I manage to solve the problem. Since I'm new with ROS I wanted to ask how can I use the sensor with rviz? Thank you

from vl53l1x_ros.

okalachev avatar okalachev commented on June 19, 2024

Run rviz on your computer with pointing ROS_MASTER_URI to your RPi's hostname; add /vl53l1x/range topic visualization.

Some more info here: https://clover.coex.tech/en/rviz.html#start-rviz

from vl53l1x_ros.

lurunawjan avatar lurunawjan commented on June 19, 2024

I tried to use that but why it said that for frame [] fixed frame [map] does not exist

from vl53l1x_ros.

okalachev avatar okalachev commented on June 19, 2024

In ROS, in order to visualize the sensor data each sensor should declare its pose in space (most often relative to the robot's body), using a TF frame. Please, address the main TF documentation to learn details.

By default, the driver publishes an empty frame (header.frame_id = ""), so you should configure it manually in the launch-file.

The simplest way to see something is to put any string you want there (e. g. rangefinder) and set it as the rviz fixed frame name.

from vl53l1x_ros.

Related Issues (6)

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.