News for hackers. Stuff that matters.
Re:Robotics and ROS2 Course by University of Eastern Finland by inetknght on Sunday January 19, 2025 @05:37PM (#42762782)
I tried to use ROS2 twice in my professional career. Both times ended up with massively bloated build pipeline code, significantly longer build times, and massively bloated Docker images.

Don't use ROS2. The benefits just aren't worth it. It's great for school but it's terrible for production.

Re:Robotics and ROS2 Course by University of Eastern Finland by rubicks on Sunday January 19, 2025 @07:27PM (#42763660)
I have worked in two failed and failing startups that invested heavily in ROS. I could fill several volumes with "ROS Gotchas". Everything in the ROS stack is either a useless curio or an on-fire clown car.

Using ROS is a great way to turn your project and business into a cautionary tale.

Re:Robotics and ROS2 Course by University of Eastern Finland by pattycakes on Sunday January 19, 2025 @05:58PM (#42762979)
Sounds like your build system is the problem, not ROS.
Re:Robotics and ROS2 Course by University of Eastern Finland by markisus on Sunday January 19, 2025 @08:00PM (#42763850)
Last time I used ROS, it forced you to use its build system. Catkin or something? It was a layer on top of Cmake.
Re:Robotics and ROS2 Course by University of Eastern Finland by rubicks on Sunday January 19, 2025 @08:46PM (#42764106)
My colleagues and I used to joke that any build system issue you encounter will be addressed in next year's build system.

* https://wiki.ros.org/rosbuild

* https://wiki.ros.org/catkin

* https://docs.ros.org/en/jazzy/Tutorials/Beginner-Client-Libr...

* https://docs.ros.org/en/jazzy/How-To-Guides/Ament-CMake-Docu...

It doesn't feel like a joke anymore.

Re:Robotics and ROS2 Course by University of Eastern Finland by rgovostes on Sunday January 19, 2025 @09:15PM (#42764303)
You forgot ament.
Re:Robotics and ROS2 Course by University of Eastern Finland by rubicks on Sunday January 19, 2025 @09:37PM (#42764426)
Whoops, sorry. I must have repressed that trauma.
Re:Robotics and ROS2 Course by University of Eastern Finland by patrick451 on Sunday January 19, 2025 @09:29PM (#42764386)
Ros2's colcon will build the packages in your workspace individually, in topological order of the dependency DAG. This is a completely insane way to structure a c++ build because it destroys the innate parallelism of the compilation process.

The build system for ros1, catkin, didn't have this problem because it turned all your packages into a single cmake build. Just one of the many ways that ros2 was a regression from ros1.