Skip to content

Boogieman07/TFLuna-Lidar-with-ROS-Noetic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

TFLuna 1D LiDAR ROS Interface

This repository provides a ROS interface for the TFLuna 1D LiDAR sensor using an Arduino board. The interface allows you to connect the LiDAR to your ROS-Noetic system and visualize the sensor data using the RQT graphical tool.

Hardware Setup

  1. Connect the TFLuna 1D LiDAR sensor to the Arduino board using the TX and RX pins.
  2. Establish a serial communication between the Arduino and the host PC.

Arduino Setup

  1. Upload the Arduino script provided in this repository to the Arduino board.
  2. Before uploading, ensure that you check the port name and baud rate in the Arduino script and modify them according to your system's configuration.

Python Script Setup

  1. Run the Python script in a terminal using the following command:

    python python_file_name.py
    

    Make sure to replace python_file_name.py with the actual name of the Python script.

  2. Before running the script, check the port number and baud rate in the Python script, and ensure that they match the configuration in the Arduino code.

  3. Make the Python script executable by running the following command:

    chmod +x python_file_name.py
    

    Again, replace python_file_name.py with the actual name of the Python script.

Sensor Data Publishing

  1. After executing the Python script in the terminal, the LiDAR sensor data will be published as a lidar_distance node.

  2. To verify the published topic, open a separate terminal and run the following command:

    rostopic list
    

    The topic you are looking for should be /lidar_distance. You can modify the topic name in the Python script if desired.

  3. To observe the messages published on the /lidar_distance topic, use the command:

    rostopic echo /lidar_distance
    

Visualization with RQT Graphical Tool

  1. Open the RQT graphical tool on your ROS-Noetic system.
  2. Look for the lidar_distance topic in the list of available topics.
  3. Select the lidar_distance topic to visualize the sensor data provided by the TFLuna 1D LiDAR.

Feel free to customize the code and topic names to suit your specific requirements. For any further assistance or inquiries, please don't hesitate to contact me.

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy