-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove / Re-Name std::shared_ptr<RigidBodyFrame> "weld_to_frame" #3093
Comments
Do you have any policies about changing API/ABI? I'll go look in the docs... |
I didn't see any mention of changing API/ABI in the docs. If drake CI is clean, is that all you're concerned with? There aren't any downstream packages that use drake that we need to worry about changing API/ABI? |
ABI is not a concern (downstream always build from source, at the moment). We have Russ's blessing to change APIs (with a CHANGELOG.md entry), presuming we have a good reason. (For example, randomly renaming things isn't super helpful, but hiding implementation details would be, or broadening the method to support more use cases, etc.) In short, there are some downstream users, but they try to track our changes, and will be happier if the API breaks are for the greater good. I haven't thought about whether this particular change is of merit in that context (or even worth pursuing in the near term). |
Also, plans to edit the RidigBodyTree should be circulated to the Dynamics team for input, so /CC @sherm1 and @amcastro-tri who can rope anyone else in. |
Ok, it's marked as high priority, but I'll wait to see what is the consensus. |
Heh, I didn't see that. I think @liangfok was perhaps a bit generous with that label. Let's have @sherm1 and @amcastro-tri definitely weigh in on what to do here. |
Ha! Yeah, I don't know what I was thinking when I set the priority. Since it's not blocking anyone at the moment, I'll downgrade the priority. |
I believe this change (or at least some change to |
Getting rid of It will also be a big PR because, as you will see when you start doing it, the
|
Is RigidBodyPlant also contaminated with shared_ptr leakage? |
Luckily, @amcastro-tri did an excellent job preventing contamination of |
yes! I hate |
I'm not sure this is relevant anymore, given the planned deprecation of RBT? |
@amcastro-tri, what do you think? Should this be merged into #5013? |
We know we should not be using shared pointers in the way they are being used for RigidBodyFrame objects. This was already taken into account in the design of MultibodyTree's API. |
Thanks @amcastro-tri. I'll go ahead and close this issue since I don't think it's blocking anyone and MBT will have a totally different API. |
It should ideally be a const reference or
unique_ptr
. This entails modifying the APIs ofRigidBodyTree
andRigidBodySystem
.In addition, per discussion in #4107, consider renaming it so it does not sound like a function. Consider
frame
orweld_frame
.The text was updated successfully, but these errors were encountered: