# C++ For Robotics

**URL:** https://get-help.theconstruct.ai/c/course-support/cppforrobotics/57.md

[Latest](https://get-help.theconstruct.ai/latest.md) · [Categories](https://get-help.theconstruct.ai/categories.md) · [Tags](https://get-help.theconstruct.ai/tags.md)

---

## [About the C++ For Robotics category](https://get-help.theconstruct.ai/t/about-the-c-for-robotics-category/8555)

<div class="topic-metadata">

**Author:** [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Replies:** 0

</div>

---

## [Code in Unit 6.2 section will not compile due to x\_position being private](https://get-help.theconstruct.ai/t/code-in-unit-6-2-section-will-not-compile-due-to-x-position-being-private/42843)

<div class="topic-metadata">

**Author:** [@zaf1096](https://get-help.theconstruct.ai/u/zaf1096)\
**Replies:** 1\
**Last updated:** [October 13, 2026, 1:54pm UTC](https://get-help.theconstruct.ai/t/code-in-unit-6-2-section-will-not-compile-due-to-x-position-being-private/42843 "2026-10-13T13:54:27Z")

</div>

Code below from section "Accessing attributes and methods: the dot ." in Unit 6.2 needs one change. first\_robot.x\_position should be changed to first\_robot.set\_position(1.15) so that a method reaches the private member x…

---

## [\[Bug\] Storage full](https://get-help.theconstruct.ai/t/bug-storage-full/42372)

<div class="topic-metadata">

**Author:** [@dcovello274](https://get-help.theconstruct.ai/u/dcovello274)\
**Replies:** 5\
**Last updated:** [September 4, 2026, 5:16am UTC](https://get-help.theconstruct.ai/t/bug-storage-full/42372 "2026-09-04T05:16:21Z")

</div>

This is an error report. Screenshot of the error Error details Do I need to do previous courses to clear storage space. I'm not sure how to do presentations, so I plan to learn OBS Studio before wrapping up the rob…

---

## [C++ for Robotics Rosject](https://get-help.theconstruct.ai/t/c-for-robotics-rosject/42370)

<div class="topic-metadata">

**Author:** [@dcovello274](https://get-help.theconstruct.ai/u/dcovello274)\
**Replies:** 4\
**Last updated:** [September 3, 2026, 3:02pm UTC](https://get-help.theconstruct.ai/t/c-for-robotics-rosject/42370 "2026-09-03T15:02:08Z")

</div>

I completed the course, but I don’t see a copy in my Rosjects folder like I did for Linux for Robotics & Python for Robotics. Now what?

---

## [\[Bug\] Doesn't copy to Rosject](https://get-help.theconstruct.ai/t/bug-doesnt-copy-to-rosject/42371)

<div class="topic-metadata">

**Author:** [@dcovello274](https://get-help.theconstruct.ai/u/dcovello274)\
**Replies:** 2\
**Last updated:** [September 1, 2026, 3:39am UTC](https://get-help.theconstruct.ai/t/bug-doesnt-copy-to-rosject/42371 "2026-09-01T03:39:59Z")

</div>

This is an error report. Screenshot of the error Error details There's no copy of C++ for Robotics in My Rosjects, so what am I doing wrong. I already have Linux for Robotics & Python for Robotics there, but don't …

---

## [Final Project Simulation Not Running](https://get-help.theconstruct.ai/t/final-project-simulation-not-running/42291)

<div class="topic-metadata">

**Author:** [@mariamessam521cs](https://get-help.theconstruct.ai/u/mariamessam521cs)\
**Replies:** 4\
**Last updated:** [August 26, 2026, 5:54pm UTC](https://get-help.theconstruct.ai/t/final-project-simulation-not-running/42291 "2026-08-26T17:54:28Z")

</div>

Hello whenever i try to run this command: source ~/simulation\_ws/install/setup.bash ros2 launch turtlebot3\_gazebo main\_turtlebot3\_lab.launch.xml it gives me this error in the terminal and i am unable to start working o…

---

## [C ++ for Robotics](https://get-help.theconstruct.ai/t/c-for-robotics/42257)

<div class="topic-metadata">

**Author:** [@dcovello274](https://get-help.theconstruct.ai/u/dcovello274)\
**Replies:** 1\
**Last updated:** [August 24, 2026, 8:38am UTC](https://get-help.theconstruct.ai/t/c-for-robotics/42257 "2026-08-24T08:38:41Z")

</div>

Hey, just a heads‑up — the boring\_movie.cpp snippet in the C++ lesson is incomplete. It’s missing the includes and main(), so students who copy it get errors. Also, the lesson jumps between standalone C++ and ROS C++ wit…

---

## [Missing "cpp\_course\_repo" and exercise ".cpp" files in "catkin\_ws/src"](https://get-help.theconstruct.ai/t/missing-cpp-course-repo-and-exercise-cpp-files-in-catkin-ws-src/41117)

<div class="topic-metadata">

**Author:** [@rf.salazarbuttiglione](https://get-help.theconstruct.ai/u/rf.salazarbuttiglione)\
**Replies:** 1\
**Last updated:** [May 26, 2026, 11:16am UTC](https://get-help.theconstruct.ai/t/missing-cpp-course-repo-and-exercise-cpp-files-in-catkin-ws-src/41117 "2026-05-26T11:16:16Z")

</div>

Hello, I am following the course instructions, but my ~/catkin\_ws/src folder does not contain the expected repository and exercise files. According to the lesson, I should have a structure similar to this: catkin\_ws ├…

---

## [Restore deleted main folder in C++ for Robotics](https://get-help.theconstruct.ai/t/restore-deleted-main-folder-in-c-for-robotics/38886)

<div class="topic-metadata">

**Author:** [@nathan1324](https://get-help.theconstruct.ai/u/nathan1324)\
**Replies:** 2\
**Last updated:** [November 13, 2025, 9:39am UTC](https://get-help.theconstruct.ai/t/restore-deleted-main-folder-in-c-for-robotics/38886 "2025-11-13T09:39:01Z")

</div>

Hi The Construct Support Team, I accidentally deleted the main folder (catkin\_ws) in the C++ for Robotics course. I do not have a backup, and I cannot revert it in my workspace. Could you please restore the original fi…

---

## [C++ Basics problem with the simulation](https://get-help.theconstruct.ai/t/c-basics-problem-with-the-simulation/38612)

<div class="topic-metadata">

**Author:** [@EdwardGrieg](https://get-help.theconstruct.ai/u/EdwardGrieg)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 1:21pm UTC](https://get-help.theconstruct.ai/t/c-basics-problem-with-the-simulation/38612 "2025-10-24T13:21:35Z")

</div>

Hi, I am doing the final project in the C++ Basics For Robotics course. My main problem is with the naive obstacle avoider. I initialize a linear velocity for the RobotInterface instance, but after doing so the robot doe…

---

## [Certificate for Basic C++ for programming robots](https://get-help.theconstruct.ai/t/certificate-for-basic-c-for-programming-robots/37854)

<div class="topic-metadata">

**Author:** [@moetez](https://get-help.theconstruct.ai/u/moetez)\
**Replies:** 2\
**Last updated:** [September 2, 2025, 2:47pm UTC](https://get-help.theconstruct.ai/t/certificate-for-basic-c-for-programming-robots/37854 "2025-09-02T14:47:44Z")

</div>

I have successfully completed the course on mastering the fundamentals of C++ programming for robotics; however, I have not yet received my certificate. I kindly request your assistance in issuing or verifying the certif…

---

## [C++ Basics Real Robot Project - need guidelines](https://get-help.theconstruct.ai/t/c-basics-real-robot-project-need-guidelines/37698)

<div class="topic-metadata">

**Author:** [@lifdmitry](https://get-help.theconstruct.ai/u/lifdmitry)\
**Replies:** 5\
**Last updated:** [August 29, 2025, 3:56am UTC](https://get-help.theconstruct.ai/t/c-basics-real-robot-project-need-guidelines/37698 "2025-08-29T03:56:52Z")

</div>

Hello Construct Team and Forum members, If it is possible I’d like to ask several questions regarding the project, mentioned in this topic. This is a first project, linked to the course “C++ Basics” I can not resolv…

---

## [Cant find my ROS project](https://get-help.theconstruct.ai/t/cant-find-my-ros-project/37060)

<div class="topic-metadata">

**Author:** [@jadfayad111](https://get-help.theconstruct.ai/u/jadfayad111)\
**Replies:** 1\
**Last updated:** [July 14, 2025, 11:50am UTC](https://get-help.theconstruct.ai/t/cant-find-my-ros-project/37060 "2025-07-14T11:50:10Z")

</div>

This is an error report. Screenshot of the error Error details to advance to the next chapter in C++ for robotics i should do the first part of the ROSproject but i can't find it in my ROSprojects although i alread…

---

## [\[Bug\] Files just self deleted](https://get-help.theconstruct.ai/t/bug-files-just-self-deleted/36964)

<div class="topic-metadata">

**Author:** [@Jonathan1361015](https://get-help.theconstruct.ai/u/Jonathan1361015)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 9:18am UTC](https://get-help.theconstruct.ai/t/bug-files-just-self-deleted/36964 "2025-07-02T09:18:08Z")

</div>

This is an error report. Screenshot of the error Error details The unit exercise files and contents of the src folder just self deleted for both me, and my friend. FYI this is the C++ for robotics course. They were…

---

## [Excercise 3.1 "move and then update" the position](https://get-help.theconstruct.ai/t/excercise-3-1-move-and-then-update-the-position/36438)

<div class="topic-metadata">

**Author:** [@KarthikeyanBalasubramanian](https://get-help.theconstruct.ai/u/KarthikeyanBalasubramanian)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 11:23am UTC](https://get-help.theconstruct.ai/t/excercise-3-1-move-and-then-update-the-position/36438 "2025-06-03T11:23:56Z")

</div>

Hi, before posting this question i did searched the form and found similar question since 2021 and no much responses. Also i could see the code was diff way back then, than now. The problem i see is in specific to the u…

---

## [\[Bug\] backward linear velocity must set to - 0.5](https://get-help.theconstruct.ai/t/bug-backward-linear-velocity-must-set-to-0-5/36397)

<div class="topic-metadata">

**Author:** [@mazen-daghari](https://get-help.theconstruct.ai/u/mazen-daghari)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 11:33am UTC](https://get-help.theconstruct.ai/t/bug-backward-linear-velocity-must-set-to-0-5/36397 "2025-05-26T11:33:00Z")

</div>

This is an error report. Screenshot of the error Error details The x-axis velocity is set to 0.5 for forward linear motion. To move the robot backward, this value should be changed to -0.5.

---

## [Prerequisites for C++ for Robotics Course](https://get-help.theconstruct.ai/t/prerequisites-for-c-for-robotics-course/35928)

<div class="topic-metadata">

**Author:** [@arilev65](https://get-help.theconstruct.ai/u/arilev65)\
**Replies:** 4\
**Last updated:** [April 23, 2025, 6:51pm UTC](https://get-help.theconstruct.ai/t/prerequisites-for-c-for-robotics-course/35928 "2025-04-23T18:51:47Z")

</div>

I am doing the C++ for robotics course. What things do i need already installed on my computer? What should the ~/catkin\_ws folder look like? I got stuck at 1.2 when I had to run catkin\_make and got a command not found …

---

## [C++ course for ros](https://get-help.theconstruct.ai/t/c-course-for-ros/35912)

<div class="topic-metadata">

**Author:** [@amira\_cherni](https://get-help.theconstruct.ai/u/amira_cherni)\
**Replies:** 1\
**Last updated:** [April 22, 2025, 10:37am UTC](https://get-help.theconstruct.ai/t/c-course-for-ros/35912 "2025-04-22T10:37:52Z")

</div>

i completed the c++ course but no sertificate or exam

---

## [Linux Platform Missing Main file?](https://get-help.theconstruct.ai/t/linux-platform-missing-main-file/35478)

<div class="topic-metadata">

**Author:** [@Sanguin](https://get-help.theconstruct.ai/u/Sanguin)\
**Replies:** 3\
**Last updated:** [March 28, 2025, 9:41am UTC](https://get-help.theconstruct.ai/t/linux-platform-missing-main-file/35478 "2025-03-28T09:41:34Z")

</div>

This is an error report. Screenshot of the error Error details Compile error seems to be caused by a missing main file beyond m scope.

---

## [Identidicar error c++ for robotics](https://get-help.theconstruct.ai/t/identidicar-error-c-for-robotics/35016)

<div class="topic-metadata">

**Author:** [@LCMHI](https://get-help.theconstruct.ai/u/LCMHI)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 10:01am UTC](https://get-help.theconstruct.ai/t/identidicar-error-c-for-robotics/35016 "2025-02-26T10:01:45Z")

</div>

\#include "rosbot\_control/rosbot\_class.h" #include \<ros/ros.h\> #include \<iostream\> #include \<iostream\> #include \<list\> #include \<map\> #include \<string\> using namespace std; list move\_and\_inform(RosbotClass rosbot, i…

---

## [\[Bug\] project at the end of chapter 5 , not chapter 3](https://get-help.theconstruct.ai/t/bug-project-at-the-end-of-chapter-5-not-chapter-3/35004)

<div class="topic-metadata">

**Author:** [@pepperumo](https://get-help.theconstruct.ai/u/pepperumo)\
**Replies:** 1\
**Last updated:** [February 24, 2025, 7:19am UTC](https://get-help.theconstruct.ai/t/bug-project-at-the-end-of-chapter-5-not-chapter-3/35004 "2025-02-24T07:19:52Z")

</div>

This is an error report. Screenshot of the error Error details should not the project be at the end of chapter 5 ?

---

## [Unfinished Course](https://get-help.theconstruct.ai/t/unfinished-course/34641)

<div class="topic-metadata">

**Author:** [@tabaron](https://get-help.theconstruct.ai/u/tabaron)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 9:00am UTC](https://get-help.theconstruct.ai/t/unfinished-course/34641 "2025-02-03T09:00:16Z")

</div>

This is an error report. Screenshot of the error Error details The screenshot was of the wrong tab. The course is showing 83% complete and it says that I've completed section 6, but it won't progress any further or…

---

## [\[Bug\] \[all\] Error 2 Invoking "make -j8 -l8" failed](https://get-help.theconstruct.ai/t/bug-all-error-2-invoking-make-j8-l8-failed/34388)

<div class="topic-metadata">

**Author:** [@Rosasmau](https://get-help.theconstruct.ai/u/Rosasmau)\
**Replies:** 4\
**Last updated:** [January 20, 2025, 9:19am UTC](https://get-help.theconstruct.ai/t/bug-all-error-2-invoking-make-j8-l8-failed/34388 "2025-01-20T09:19:54Z")

</div>

This is an error report. Screenshot of the error Error details \[all\] Error 2 Invoking "make -j8 -l8" failed

---

## [Concern over C++ for robotics exam question](https://get-help.theconstruct.ai/t/concern-over-c-for-robotics-exam-question/34301)

<div class="topic-metadata">

**Author:** [@gotbordom](https://get-help.theconstruct.ai/u/gotbordom)\
**Replies:** 2\
**Last updated:** [January 13, 2025, 8:51am UTC](https://get-help.theconstruct.ai/t/concern-over-c-for-robotics-exam-question/34301 "2025-01-13T08:51:20Z")

</div>

Hello, I believe this question is phrased in a very peculiar fashion: In the image above, and based on how the question is worded, I believe I could argue why all are possible use cases of && (logical and operator) …

---

## [\[Bug\] Simulation not running](https://get-help.theconstruct.ai/t/bug-simulation-not-running/33820)

<div class="topic-metadata">

**Author:** [@azm2000](https://get-help.theconstruct.ai/u/azm2000)\
**Replies:** 1\
**Last updated:** [December 10, 2024, 9:01am UTC](https://get-help.theconstruct.ai/t/bug-simulation-not-running/33820 "2024-12-10T09:01:56Z")

</div>

This is an error report. Screenshot of the error Error details SImulation has to be restarted every run otherwise the robot does not move

---

## [Cpp Course repo package is missing in the basic Cpp course](https://get-help.theconstruct.ai/t/cpp-course-repo-package-is-missing-in-the-basic-cpp-course/32169)

<div class="topic-metadata">

**Author:** [@ajayadit.amazon](https://get-help.theconstruct.ai/u/ajayadit.amazon)\
**Replies:** 2\
**Last updated:** [September 11, 2024, 4:04pm UTC](https://get-help.theconstruct.ai/t/cpp-course-repo-package-is-missing-in-the-basic-cpp-course/32169 "2024-09-11T16:04:35Z")

</div>

The Instruction says the package Cpp\_course\_repo will be present by default but its not. When I tried creating it manually I faced the following issue during build. catkin\_make Base path: /home/user/catkin\_ws Source s…

---

## [\[Bug\] Robot gets stuck when moving forward](https://get-help.theconstruct.ai/t/bug-robot-gets-stuck-when-moving-forward/31539)

<div class="topic-metadata">

**Author:** [@vinaypra](https://get-help.theconstruct.ai/u/vinaypra)\
**Replies:** 2\
**Last updated:** [August 5, 2024, 10:10am UTC](https://get-help.theconstruct.ai/t/bug-robot-gets-stuck-when-moving-forward/31539 "2024-08-05T10:10:59Z")

</div>

This is an error report. Screenshot of the error Error details When running my custom\_trajectory function, I try to move the robot straight first by calling the move\_forward function and then try to make it turn us…

---

## [Where is rosbot\_class.h located?](https://get-help.theconstruct.ai/t/where-is-rosbot-class-h-located/31317)

<div class="topic-metadata">

**Author:** [@Yuwanzi](https://get-help.theconstruct.ai/u/Yuwanzi)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 6:42am UTC](https://get-help.theconstruct.ai/t/where-is-rosbot-class-h-located/31317 "2024-07-16T06:42:50Z")

</div>

Hi The Construct Team, I’m in exercise 1.1. In the code explanation: #include “rosbot\_control/rosbot\_class.h”. But I didn’t fin rosbot\_class.h file under rosbot\_control directory. Here is my path to the rosbot\_control: …

---

## [Got error in Exercise 1.1 after catkin\_make](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020)

<div class="topic-metadata">

**Author:** [@Yuwanzi](https://get-help.theconstruct.ai/u/Yuwanzi)\
**Replies:** 2\
**Last updated:** [June 24, 2024, 3:47pm UTC](https://get-help.theconstruct.ai/t/got-error-in-exercise-1-1-after-catkin-make/31020 "2024-06-24T15:47:30Z")

</div>

Hi Construct team, I got this error after I run catkin\_make: /home/user/catkin\_ws/src/cpp\_course\_repo/c\_scripts/src/unit1\_exercise.cpp:9:3: error: ‘RosbotClass’ was not declared in this scope RosbotClass rosbot; ^ /…

---

## [Better solution of the micro project?](https://get-help.theconstruct.ai/t/better-solution-of-the-micro-project/30466)

<div class="topic-metadata">

**Author:** [@min.wang.1997.01.13](https://get-help.theconstruct.ai/u/min.wang.1997.01.13)\
**Replies:** 2\
**Last updated:** [May 16, 2024, 5:39pm UTC](https://get-help.theconstruct.ai/t/better-solution-of-the-micro-project/30466 "2024-05-16T17:39:48Z")

</div>

The solution is a bit strange. The following code just gets distance 0 …Why do you add them? // Get initial position float x\_0 = rosbot.get\_position(1); float y\_0 = rosbot.get\_position(2); float x\_1 = x\_0; fl…

[Next page](https://get-help.theconstruct.ai/c/course-support/cppforrobotics/57.md?page=1)
