← Back to search

For robotics teachers: How to Build a ROS 2 Velocity Command Publisher(C++) | Open Class #2

The Construct Robotics Institute 1:25:36

564 views · 11 likes Watch on YouTube ↗

In this Open Class, we'll dive into creating a ROS 2 publisher node in C++ that issues velocity commands to drive a robot. We'll build a node that broadcasts to cmd_vel topic, using Twist message interface, and directs the robot through various motion sequences including forward movement, reverse, and rotational maneuvers.

You will learn:

✅ Grasping ROS 2 publishers and timer-driven message broadcasting
✅ Manipulating geometry_msgs/Twist message structures
✅ Developing and deploying C++ nodes in ROS 2
✅ Commanding robot motion via velocity instructions
✅ Setting up CMakeLists.txt for C++ ROS 2 packages

📁 *ROS project link: https://app.theconstruct.ai/l/6ff36178/
🤖️ *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.