# Issue with Real Robot ROS2 C++ project topic subscriber

**URL:** <https://get-help.theconstruct.ai/t/issue-with-real-robot-ros2-c-project-topic-subscriber/26349>\
**Category:** ROS2 in 5 Days C++\
**Tags:** real-robot\
**Created:** [September 17, 2023, 6:41pm UTC](https://get-help.theconstruct.ai/t/issue-with-real-robot-ros2-c-project-topic-subscriber/26349 "2023-09-17T18:41:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [September 19, 2023, 9:00am UTC](https://get-help.theconstruct.ai/t/issue-with-real-robot-ros2-c-project-topic-subscriber/26349/4 "2023-09-19T09:00:13Z")

</div>

Well, then, the problem is somewhere in your code. What you can do:

- Carefully compare your code to the samples given in the course.
- You might not be calling `ros::spin()` properly in your code. Please see [this post](https://get-help.robotigniteacademy.com/t/what-is-rospy-spin-ros-spin-ros-spinonce-and-what-are-they-for/58) for more information.

---

_[View the full topic](https://get-help.theconstruct.ai/t/issue-with-real-robot-ros2-c-project-topic-subscriber/26349)._
