GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ErdiTech/erdi-lrf-ros2-examples: ROS 2 laser rangefinder driver examples: sensor_msgs/Range node, RViz, launch, median filter | ROS2 激光测距传感器示例

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
config
config
 
 
erdi_lrf_examples
erdi_lrf_examples
 
 
launch
launch
 
 
resource
resource
 
 
rviz
rviz
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.xml
package.xml
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

ERDI laser rangefinder ROS 2 examples (RViz, launch files, filters)

Datasheets and public prices are on the LRF22VB page and in the full ERDI laser rangefinder model list.

Ready-to-run ROS 2 examples for ERDI 905 nm laser rangefinder modules: launch files, an RViz2 sensor_msgs/Range display, a median and slew-rate filter node, a hardware-free demo (synthetic range publisher) and a two-sensor namespace launch. It sits on top of the erdi_lrf_driver driver package, which publishes sensor_msgs/Range for LRF22VB, LRF50VB, LRF50H-LRF1500H, LR1000E2 ... LR2000E4, LRF1200A1, LRF3000A1 and SPD1200N* modules. Use it as a starting point for a ROS 2 laser distance sensor on a robot, AGV, drone companion computer or test bench.

Build

mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone https://github.com/ErdiTech/erdi_lrf_driver.git
git clone https://github.com/ErdiTech/erdi-lrf-ros2-examples.git
sudo apt install python3-serial
cd ~/ros2_ws && colcon build --packages-select erdi_lrf_driver erdi_lrf_examples
source install/setup.bash

Run

# no hardware: synthetic sine wave -> filter -> RViz
ros2 launch erdi_lrf_examples demo_fake_rviz.launch.py

# real module (LRF22VB: millimetre stream at 460800 baud)
ros2 launch erdi_lrf_examples lrf22vb_rviz.launch.py port:=/dev/ttyUSB0

# two sensors, namespaced /front/range and /down/range
ros2 launch erdi_lrf_examples dual_lrf.launch.py
Launch file What it starts
demo_fake_rviz.launch.py fake_range_node, range_filter_node, static TF, RViz2
lrf22vb_rviz.launch.py erdi_lrf_driver range_node + filter + RViz2
dual_lrf.launch.py two range_node instances in front and down namespaces

Topics: range (sensor_msgs/Range, raw), range_filtered (median of slew-limited samples). Parameters are in config/; the driver reads the unit per model (H series centimetres, VB series millimetres, family A metres x 10), so always set the exact model.

Notes

  • The pure-Python filters (filters.py) and the file syntax of the launch, YAML and RViz files are tested in CI without ROS: python -m pytest -q test.
  • The nodes and launch files have not been run in a ROS 2 environment by the maintainers yet; bench reports and pull requests are welcome. Publishing Range does not make a module a PX4 / ArduPilot rangefinder: see flight-controller integration and erdi-lrf-pixhawk-ardupilot.
  • Module pages and datasheets: https://erdilrf.com/models/?utm_source=github&utm_medium=readme&utm_campaign=erdi-lrf-ros2-examples.

Related projects

  • ErdiTech/erdi-lrf-drivers: Python, Arduino and ROS 2 drivers
  • erdi-lrf-raspberry-pi-python: Raspberry Pi logger, MQTT and MAVLink bridge
  • laser-rangefinder-module-database: dataset of laser rangefinder modules

Support / 打赏

If this project saved you time, you can buy the author a coffee in crypto. Thank you! 如果这个项目帮到了你,欢迎用加密货币打赏支持,谢谢!

Network Asset Address
TRON (TRC20) USDT TNGdTwE6opH6rmUyoG1JUR7FSyEb4k273R
Ethereum / BNB Chain / Polygon USDT 0x59c43144a862b351fa1086ae842d1327c9d91613
Ethereum / Arbitrum / Base ETH 0x59c43144a862b351fa1086ae842d1327c9d91613
Bitcoin BTC 1RS6tWXHregLfEsiPzVUCUBuhgDg5uTSV
Solana USDT HZguEXfTtLChNdJTxAYCbcGscaqikz8JYrEpUhEyeVd9

Please send only the listed asset on the listed network — other tokens or networks may be lost. 请按表中对应的网络转对应的币种,转错币种或网络可能无法找回。

License

MIT — see LICENSE.

About

ROS 2 laser rangefinder driver examples: sensor_msgs/Range node, RViz, launch, median filter | ROS2 激光测距传感器示例

erdilrf.com

Topics

distance-sensordroneerdilaser-distance-sensorlaser-rangefinderlidarroboticsrosros2rviztofuart

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.