Repository navigation
Description
Some people, including myself, feel that this repository/package name is not ideal and that we should change it, see: #13 (comment) (and perhaps other conversations). If you disagree please chime in here.
The top contenders seem to be:
rcutilsrcuroscutils
I'll try to keep a running tally of people's preferences (in ranked choice where available):
- @wjwwood:
rcurcutilsroscutils
- @dirk-thomas:
rcutilsroscutils
- @codebot:
rcurcutils
- @clalancette:
roscutils
- @Karsten1987:
rcutils
- @IanTheEngineer:
rcurcutils
- @tfoote:
rcu
- @mikaelarguedas:
rcutils
When/if we select a new name, we should act quickly to update all instances to minimize impact on git history and cross-references. Also, we should update this package to use the full package name in the manual namespacing throughout.
I talked with @Karsten1987 offline about this and I came up with two criteria which could improve the name of this package:
- A shorter name
- since this is package contains C code, its functions and types need to be manually namespaced by prefixing them with the package name
- @dirk-thomas pointed out that some shortcuts have been taken, using
utitlities_instead of the fullc_utilities_for example- I agree with him, that using the exact package name in the namespace is a very useful convention
- a shorter name will keep it convenient and prevent the desire for shortcuts like these
- A name with some reference to our project or organization
- My concern is that
c_utilities_and especiallyutilities_is not a very unique name - a unique name helps avoid symbol collisions and makes it more obvious that some part of the code is part of our project
- for example, others thought we were adding an external dep: use string_array_t from c_utilities package rmw#100 (comment)
- Other examples of this are
apr(Apache Portable Runtime) andglibGLib which is part of Gnome.- both are widely reused despite containing a reference to a project or organization in the name
- My concern is that
Based on these goals I just threw out some alternatives, but I'm not really attached to any of them so please others chime in with options:
osrfcutilsOSRF C Utilities- could be extended for other languages, e.g. for C++ as
osrfcpputils
- could be extended for other languages, e.g. for C++ as
osrfcuOSRF C Utilities- could be extended for other languages, e.g. for C++ as
osrfcppu
- could be extended for other languages, e.g. for C++ as
osrflibcOSRF Library for C- could be extended for other languages, e.g. for C++ as
osrflibcpp
- could be extended for other languages, e.g. for C++ as
libosrfcLibrary used at OSRF for C- could be extended for other languages, e.g. for C++ as
libosrfcpp - library names could be modified so that they come out as
libosrfc.extrather thanliblibosrfc.ext
- could be extended for other languages, e.g. for C++ as
osrfcOSRF C utilities library- could be extended for other languages, e.g. for C++ as
osrfcpp - library names would naturally be
libosrfc.ext
- could be extended for other languages, e.g. for C++ as
rcutilsROS C Utilities- could be extended for other languages, e.g. for C++ as
rcpputils
- could be extended for other languages, e.g. for C++ as
There were some others, but I didn't really like them or they collided with existing things, for example anything containing roslib might be confused with:
Or that ros2* sounds like you're converting to something from ros, or anything containing comm and not knowing if that's short for "common" or "communication".
My personal favorite atm is probably osrfc or libosrfc, as I think utils or utilities is a bit redundant or catch all, sort of like misc or common. To me leaving off words like that implies the same thing. I also think that they're pretty unlikely to collide with anything else and are relatively short.
Activity
dirk-thomas commentedon Apr 14, 2017
I personally don't like the idea of having
osrfin the name. Just imagine if that package would have been created a few years ago - different company name. They same might be the case in the future. Another reason against it is imo that it will likely never fulfill the scope of being / becoming a library for C @ OSRF. The same is the case for the Python equivalentosrf_pycommon.Therefore I am in favor of
rcutils. It encode the important pieces imo: ROS, C, utils. And leaves room for similar packages for different languages.yRegarding the content I just want to mention that I think we need to be careful what to put inside that package. While we mainly want to avoid duplication we should be very careful not to put too many things into that package. It should aim to provide "utilities" which makes downstream code easier / less verbose (that is what e.g.
aprandglibare about). But we should try to avoid providing crucial concepts which are then becoming must haves in downstream code. (I know this sounds fuzzy and is difficult to describe but I wanted to mention it anyway.)codebot commentedon Apr 14, 2017
clalancette commentedon Apr 14, 2017
I'd personally suggest something more like:
roscutils. It's a little longer, but then it is very clear that this is for ROS.Karsten1987 commentedon Apr 14, 2017
👍
rcutilsIanTheEngineer commentedon Apr 14, 2017
👍 to
rcutilsas well, or something equivalentlyROS-y. I agree with avoidingosrfin the namespace. I am constantly haunted by thehlrnamespace in our Rethink code. Organization names change from time to time, but the project-code tends to live on :)tfoote commentedon Apr 14, 2017
I'd take the other side and say that this is not ROS specific. We are using it to support the development of ROS2.0 but it certainly could be reused outside of ROS. It's true that it likely won't reach the scope of
osrf_pycommon.Following the goal of making downstream code less verbose, and following the examples of
aprandglibI'd suggest shortening it torcuThis would come from it's core purpose as ROS C Utilities however likeaprit can have a life of it's own if others want to pick it up. It's also short so usages are clear. And it's matches nicely with rmw and rcl for length making readability easier too.IanTheEngineer commentedon Apr 14, 2017
Well put, Tully. Changing my +1 to
rcu.wjwwood commentedon Apr 14, 2017
Thanks for all the feedback so far everyone.
@clalancette
The preference seems to be for
rcutilsdo you feel strongly aboutrosversus justrfor the suffix, or are you okay with the shorter hand?@tfoote
For me,
osrf_pycommoncame in under different constraints, because it was being used by catkin and ament, so there wasn't a clear "default" user, so the organization made the most sense at the time. To be honest, I'm not 100% happy with the name of that thing either, but it's the best I could come up with at the time. Also I considerosrf_pycommonto be "an OSRF common python library", not "the OSRF common python library", so if another project at OSRF needed common Python stuff they could make another library, but the hope is that they wouldn't need to do so. I feel the same about this package, it certainly won't be the only utilities library in ROS at some point given the breadth of people adding stuff to the ecosystem, but is a utility package used by ROS.I understand the arguments against an institution name, but I guess I just don't mind if the company name changes or something like that in the future. It's part of the history regardless of the name and is in the copyright, etc. It's still unique and wouldn't be too hard for someone to figure out why
osrfis in the name. That being said, I like the concise nature of therc*names, and I'm perfectly fine with that.I like the shorter name, but my only hesitation is that
rcl*stands for ROS Client Library, whereas this would bercuROS C Utilities, so thecstands for different things in each name, which might be confusing. I don't think that mix up would cause an issue, but maybe just misconceptions. I don't feel strongly about it, but that's why I didn't suggest it earlier.codebot commentedon Apr 14, 2017
mikaelarguedas commentedon Apr 14, 2017
👍 for
rcutils. agreed with the potential confusion ofrcuthat @wjwwood highlighted in his previous commentwjwwood commentedon Apr 14, 2017
Ok, I've added a summary of the preferences (ranked choice where implied) to the original post:
#17 (comment)
If you'd like to add your preference or update it please comment and I'll do it. If you want to edit the post yourself, you can but make sure to refresh right before editing to avoid overwriting each other.
Please register your opinion by end of day Saturday, so I can start to put the change in motion after that.
IanTheEngineer commentedon Apr 15, 2017
I think the
cinrcuis can be interpreted interchangeably between "client" and "c-language" in this context. All ros2 language clients that depend on on therclwill depend on this c-library as well, makingrcuquite fitting.wjwwood commentedon Apr 17, 2017
Looks like there is a slight preference for
rcu. I'll go forward with that.clalancette commentedon Apr 17, 2017
@wjwwood "RCU" has an entirely different connotation to me, which is the Read-Copy-Update synchronization primitive in the Linux kernel. There is also already "liburcu", which is a user-space implementation of the same primitive (http://liburcu.org/). So I was going for slightly less confusion in my internal namespace by adding "ros" to the beginning, instead of just rcu.
That all being, I'm not opposed to rcutils if we really want to go forward with that.
wjwwood commentedon Apr 17, 2017
tl;dr we'll use
rcutilsunless another issue comes up.@clalancette thanks for that insight. I searched for
"rcu" library, but I missedurucamongst the credit unions and university websites. Given that I, I'll retract my support forrcubut what I support instead doesn't matter I think, because no matter what I believercutilswins. Luckily I had not started because my other prs that need to be merged first took longer to clean up than I had hoped yesterday.wjwwood commentedon Apr 20, 2017
I'll leave this open until the repository is renamed and the ros2.repos file is update.
Fix leak in test_logging_macros.cpp
Fix leak in test_logging_macros.cpp (#152)
Fix leak in test_logging.cpp
Fix leak in test_logging.cpp (#153)
Fix atomic 64 b description (ros2#17) (ros2#18)
Fix atomic 64 b description (ros2#17) (ros2#18)
micro-ROS Iron patch