Rosject workspace

After I follow the link of ROS2 Basics in 5 Days (c++) (humble) and get a copy of rosject (ROS2 Basics C++ Real Robot Project), I noticed the ros2_ws is not empty. I can create my package and build there. But when I do “source install/setup.bash”, it says
not found: “/home/user/ros2_ws/install/turtlebot3_node/share/turblebot3_node/local_setup.bash”

Should I create another work space other than ros2_ws?

Any suggestions?

Hi @ljiang ,

Yes, you can. You do not have to create a new workspace.

Delete the build, install and log folders and build from scratch using colcon build command.

No.

Nothing as of now. Let me know if the above solution worked for you.

Regards,
Girish

1 Like

It works. Thank you, Girish.

By the way, it takes more than 30 second to build my 67 lines of c++ code. Is it caused my slow network speed?

Hi @ljiang ,

Yes, it takes about 30 seconds to 1 minute to compile a single custom interface for ROS2. Even I have experienced it. For me it took about 3 minutes once, I believe that was due to internet latency, although I am not sure. It could have also been server’s processing latency due to process load.

Anyways, glad it worked for you.

Please mark the corresponding post as “Solution” so this issue can be closed.

Regards,
Girish

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.