-
Notifications
You must be signed in to change notification settings - Fork 81
Expose individual bodies NDOF effector #1117
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
base: develop
Are you sure you want to change the base?
Expose individual bodies NDOF effector #1117
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR. Thanks for upgrading both effectors. Some todos:
- need to deprecate the use of the all effector class name
- I don't see any unit tests checking that we can change values on the fly. We should test this in a unit test for both effectors.
#include "architecture/messaging/messaging.h" | ||
|
||
/*! @brief linear spring mass damper state effector class */ | ||
class linearTranslationOneDOFStateEffector : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to break existing code. I agree with the fix, but can we deprecate this class name fix? Could we use
class MyClass {
// ...
};
using OtherName = MyClass;
OtherName x; // same as MyClass
to achieve this and keep backwards compatibility for a year?
Next question, can we give a deprecation warning if someone uses the old name?
Description
The commits first run through
spinningBodiesNDOF
, and then move ontolinearTranslationBodiesNDOF
. First, allSpinningBody
andTranslatingBody
structures are madeshared_ptr
. Then, the.i
files are changed appropriately to accommodate the use of shared pointers. Finally, a getter method is added for each body so that they can be changed in Python.Verification
All tests pass as expected.
Documentation
N/A.
Future work
N/A.