Mobile Manipulator Bug Fix and Input Validation#1537
Merged
Conversation
…into nan_protection
Skylion007
reviewed
Oct 18, 2021
| def base_pos(self, position): | ||
| def base_pos(self, position: mn.Vector3): | ||
| """Set the robot base to a desired ground position (e.g. NavMesh point) via configured local offset from origin.""" | ||
| if len(position) != 3: |
Contributor
There was a problem hiding this comment.
Assuming this respects the typing, this should always evaluate as true. Do you mean position: Union[mn.Vector, Sequence[float], Tuple[float, float, float]] or such?
Contributor
Author
There was a problem hiding this comment.
The input should be a mn.Vector3 but the user may not pass the correct input here, so I am checking the length to be sure.
Skylion007
reviewed
Oct 18, 2021
| self.renderer.start_draw_jobs() | ||
| self.step_physics(dt) | ||
|
|
||
| def start_async_render(self, agent_ids: Union[int, List[int]] = 0): |
Contributor
There was a problem hiding this comment.
This isn't called anywhere is it?
Contributor
Author
There was a problem hiding this comment.
It is used in Habitat Lab where I need to separately step physics.
7 tasks
Skylion007
approved these changes
Oct 21, 2021
…obile_manipulator_fixes
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
There is a bug that sometimes occurs with the mobile manipulator after several million steps of training. The issue is
self.sim_obj.joint_positionswill become 0 length. I am not sure what causes this bug or how to reliably reproduce it. As a temporary solution, I've just added code to reset the episode when this happens.Another issue was that it was easy to pass wrong joint sizes or NaN inputs to the robot and the simulation would silently fail. I tried to fix this by adding some input validation (making sure the input is the right size and not NaN) and if the validation fails, throwing an exception.
Also added kinematic control to the mobile manipulator.
How Has This Been Tested
Types of changes
Checklist