-
Notifications
You must be signed in to change notification settings - Fork 276
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
Complaint if Joint doesn't exists before adding joint controller #786
Conversation
Signed-off-by: cjds <[email protected]>
There's some logic on So I think that we should do one of the 2:
I believe that |
@chapulina I agree with |
Ouch yeah trying infinitely silently is bad. Let's see what @azeey says, I think we could keep your error message and return right after it. |
hmm, I don't remember exactly why I added that check. Maybe I misunderstood how plugins are loaded. My current understanding is that for a given model, all the entities in the model are created before the plugin for that model is loaded. Waiting for entities is required only if that entity belongs to another model. So, option |
Okay I think I understand that change. I'm going to go ahead and try to change my PR to be that instead. Thanks for the input |
friendly ping @cjds |
another friendly ping @cjds |
Signed-off-by: root <[email protected]>
Sorry @ahcorde completely forgot about making changes. Just made the required changes. |
@ahcorde I don't think I quite understand the code well enough to understand why the tests are failing. I think it might be related to this line but maybe you could explain it to me |
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
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.
I pushed some updates in e128aab:
- Removed
validConfig
variable because we can check if the system is valid by checking thejointEntity
- Demoted
jointName
to a local variable now that it's only used in one function - Moved
kNullEntity
check to the top ofPreUpdate
- Added a simple test to make sure nothing crashes
LGTM with happy CI
🎉 New feature
Closes : # Sorry haven't written an issue yet
Summary
Test it
Tested this locally by trying to control joints that didn't exist in a model
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge