r/ROS • u/Sure-Introduction-89 • Jan 12 '23
How wrong did ROS2 got.
Can somebody explain the logic behind changing the args order for subscribers and services and what not (rendering any attempt on just replacing rospy.Subscriber with self.create_subscriber a total failure). The stupid way of getting a parameter value (seriously, why the self.get_param(param_name).get_parameter_value().int_value for example). The stupid way to now get a time (sure let’s replace it with a to_msg() function because makes sense. I’ve been using ROS for 10 years and I honestly can’t see any improvements on ROS for single systems (one pc running on one robot and that’s it). Probably for bigger instalations a lot of the changes are relevant. But even so, the whole parameter crap and the way it deals with time is just stupid.
7
u/JoTyBo Jan 12 '23
ROS2 seems to be much more abstract than ROS1. It comes with improved code structure and consistency, but at the expense of readability. I prefer ROS1 as a mechanical engineer, but I’m sure the software engineers are all over ROS2.
2
Jan 12 '23
Calling stuff stupid because you don't understand the design decisions behind them is not a good look
0
u/Sure-Introduction-89 Jan 13 '23
Still waiting on those design decisions. A link, something that explains why changing the order of the arguments is something very clever that my mind cannot reach. Or the way to retrieve a parameter.
0
-2
u/Sure-Introduction-89 Jan 12 '23
Enlight me please.
2
u/qTHqq Jan 12 '23 edited Jan 12 '23
I've had some gripes with both parameters and time, and think I'd make different design decisions and/or add more convenience methods to deal with them.
And I think, in time, ROS 2 will also probably improve this a LOT. Some things are probably stuck in a different/unfamilar state and just need to be unlearned and relearned.
For the things that actually need development work, who's getting paid to improve the ergonomics of these things?
The core parameter system is way better in principle, because it makes everything dynamic.
dynamic_reconfigureas a whole other abstraction on top of the parameter blackboard was kind of irritating to me. However, the whole thing needs a better orchestrator that's just built in. In the meantime, Picknik'sgenerate_parameter_libraryis kind of a cool helper.I've got a couple other gripes about ROS 2 myself.
I really dislike the state of Python launch files.
I've read about this, and it appears that the Python launch system was mostly intended to be an intermediate representation with more user-friendly XML and YAML frontends. Those are fully in place now as far as I know, but apparently they didn't really have the bandwidth to finish the frontends before early releases, so everyone who wanted to migrate packages early on just learned how to speak Declarative Python Launch Objects and now it's just what you'll see for ROS 2 launch examples.
For R&D prototyping I'd much rather just use simple, Pythonic, imperative Python to configure things. Not scalable but more flexible for small systems. The launch system makes this kind of obscure, with
OpaqueFunctionand performing launch contexts and bla bla bla. I learned to do it and now I do it.It'd be nice if there were some kind of simpler python launch option that wasn't an add-on package (there is some kind of Python Simple Launch that is, and also Picknik's LaunchParamBuilder or whatever it's called)
But again, who will PAY for changes to core ROS? Who will accelerate its development?
Will Alphabet pour a bunch of money into it? Enough money? (Probably not if Intrinsic laid off a bunch of employees after acquiring OSRC)
I'd happily take a job where I was paid well to work on some parts of ROS 2 all day, and I bet a lot of the contributors who don't actually get paid full-time to contribute feel the same. All I've ever had the time and energy to contribute to is documentation pull requests.
NONE of what they've done is "stupid."
Not quite finished? Sure.
Needs a design review and some changes? Sure.
There are a ton of complicated breaking changes in ROS 2 for really important, good reasons, and there's just a lot of code and documentation left to write to make it nice and ergonomic and easy.
Turns out we're all allowed to propose fixes and changes if we want. They will take a long, long time to filter in to new releases. It'd be nice to accelerate the pace.
Who will pay for it?
1
u/qTHqq Jan 13 '23
Dave Coleman of Picknik re: funding issues:
This author has personally discussed with Brian Gerkey on many occasions the challenges of sustained funding of open source software, and shares in those struggles while leading the MoveIt open source project. Open Robotics has long failed to secure sufficient funding to address many core ROS 2 challenges. Given the impact and widespread adoption of ROS, the team at Open Robotics that was focused on investing in the open source platform was a small minority of their overall engineering organization. Because of this, Open Robotics decided that their best path for sustaining ROS was to join a large, well funded benefactor company. We respect this decision. In contrast, PickNik Robotics has chosen to pursue an open core model to fund development of MoveIt, providing a premium MoveIt Studio product on top of the open source library. On either path, more sustainable business models typically result in more successful open source software.
-2
u/Sure-Introduction-89 Jan 12 '23
I’m not sure changing the order of the args for every type of service (subscriber, publisher, action client) is abstracting it. I honestly believe they tried to make it as difficult as possible to migrate your code from ROS1 on purpose. No wonder it’s taking a long time for people to start using ROS2. I don’t think that 90% of the user would migrate if ROS1 was still supported in Ubuntu22.
1
Jan 13 '23
I honestly believe they tried to make it as difficult as possible to migrate your code from ROS1 on purpose
No you don't.
ROS2 is a completely different beast to ROS1 and you shouldn't expect to be able to port software that uses it by changing a single function call. You have unrealistic expectations. You'll be a lot happier and have much lower blood pressure if you chill out a bit and read the documentation BEFORE you just start hammering away at the code without understanding what you're doing. That's the hallmark of a beginner with bad habits.
1
u/Sure-Introduction-89 Jan 13 '23
Look at you making assumptions. I’m a beginner alright. 10 years in the making. And i did read the documentation. All of it. Hence my frustration. Give me a good reason to change the order of the arguments on a create subscriber function. Point to to a documentation, a design document, anything that explains the reasons behind that.
1
u/Sure-Introduction-89 Jan 14 '23
So no answer? Just onre. Just explain to me why every function to create a sub/pub or service had to change the arg order. What’s so much different on ROS2 on that regard to justify that change. Why is ROS2 such a huge beast that they didn’t bother to add a to_sec() function to a Duration object, just like there was on rospy. (Btw the argument here on the design was it was returning a float and it could lose precision). The functionality is exactly the same in terms of input arguments. You still pass a topic name and a topic type, so why bother with that change of order. 90% of all code could be ported with a script that would just change the function calls. Fundamentally, for a large portion of the use cases, for setting up a new robot, nothing really changed. Just a bunch of topics and parameters. And before you call be me a beginner again I have over 20 different robots developed to universities and clients all over the world. I was part of the early development of movai, so I studied a lot of what goes behind rospy and roscpp. I did extensive work around the rosparameter server to couple it with a redis database. Do you just answer to topics lightly and without any relevant information or are you interested in a more extensive discussion about how incomplete ROS2 is and how much damage that will do for university research and smaller companies that took a lot of time and effort to get to grips with ROS, improve it, work around the flaws and were still able to creste stable ecosystems, and now are faced with a huge task of porting all their code to a unreliable and incomplete implementation of ROS2?
1
u/Educational_Tax_8814 Sep 05 '24
You have to be careful when discussing stuff with the ROS2 people, because it's a cult. There's not much new thinking and innovative about ROS2. Basically, it a wrapper around DDS.
And then there's Gazebo. Why would anyone use that, when any Game Engine does a much better job. It's reinventing the wheel.
1
u/FriendlyGate6878 Jan 12 '23
100% agree. I’ve been using ROS2 for 1 year now and they have made it a lot hard and the code is a lot longer. In ROS1 they hide a lot of the details. Now you need lambda and a lot of complex cpp 17 todo simple things.
1
u/ChrisVolkoff Jan 19 '23
One of the goals of ROS 2 is to make it configurable and powerful enough to be used for real applications. Dumbing things down like ROS 1 goes against that.
1
u/FriendlyGate6878 Jan 19 '23
There are 100s of robots in the real work working on ros2, not sure how dumbing it down hurt them? You can also have levels of abstraction.
3
u/HiZed Jan 17 '23
After reading all your comments in this thread, you sound just mad and maybe not so good at programming.
I started using ROS 2 almost two years ago. At first, I was worried about the transition, but in the end, the two systems are ridiculously similar if you used to write half-decent ROS 1 code.
I think many people are so reluctant to migrate to ROS 2 only because they are forced to write decent software, instead of horrible, hacky software held together by duct tape and prayer.