← Back to search

For robotics teachers: ROS 2 LiDAR Subscriber in C++ | Open Class #1

The Construct Robotics Institute 1:19:45

1,217 views · 30 likes Watch on YouTube ↗

In this Open Class, you'll explore how to create a ROS 2 subscriber node in C++ that receives LiDAR sensor data. Together, we'll implement a node that subscribes to laser scan topics, processes the sensor readings, and extracts useful information like the closest obstacle distance and direction.

You will learn:

✅ Understanding ROS 2 subscribers and callback functions
✅ Working with sensor_msgs/LaserScan message types
✅ Creating and launching C++ nodes in ROS 2
✅ Processing LiDAR data to detect obstacles and distances
✅ Configuring CMakeLists.txt for C++ ROS 2 packages

📁 *ROS project link: https://app.theconstruct.ai/l/6fcaec82/
🤖️ *Robot Used: BotBot: https://www.theconstruct.ai/botbox-warehouse-lab/

Related courses:
* ROS2 Basics in 5 Days (C++): https://app.theconstruct.ai/courses/325


============================

[For Robotics Teachers Open Class], a weekly series of videos by The Construct Robotics Institute, aims to make robotics education easier by helping teachers teach a wide range of robotics topics through hands-on practice.

Each session provides a ROS-based project (referred to as ROSJECTs 🦾 📁) for all attendees, including notebooks, code, and robot simulations. Led by ROS expert Desire, you'll see how robotics teaching and hands-on practice come together in real time.

*Missed a session? Find recordings & ROSJECTs on https://app.theconstruct.ai/open-classes/*

We're excited to share this series with you! If you have questions or want to explore new topics, drop us a comment below.

Cheers.

*The Construct Robotics Institute | Where Your Robotics Career Happens*

============================

👨‍🏫 Class Creator: Desire (ROS Tutor @The Construct Robotics Institute )
👩‍💻 Class cover designer: Sonia/Ruojun Wang (Marketing Assistant @The Construct Robotics Institute )

--
#ai #Robotics #ros #robot #ros2

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.