-
Notifications
You must be signed in to change notification settings - Fork 95
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
Logging direct VR joystick inputs #648
base: develop
Are you sure you want to change the base?
Conversation
{ | ||
return doneReplaying; | ||
IntFunction<TrackerData> trackerDataSupplier = index -> segmentType.getSegmentSide() == null ? vrInputData.get(index).trackerData.get(trackerIndex.get(segmentType)) : vrInputData.get(index).controllerData.get(segmentType.getSegmentSide()); | ||
packTrackerDataInternal(trackerDataSupplier, poseToPack, angularVelocityToPack, linearVelocityToPack); | ||
} | ||
|
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.
Calculation of interpolated pose/velocity
if (reset) | ||
this.reset(); | ||
ControllerData controllerData = vrInputData.get(index).controllerData.get(robotSide); | ||
return controllerData.triggerPressed; | ||
} | ||
|
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.
Checks button press over the interval from the previous update to this update, so that buttons aren't missed or replayed multiple times.
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.
Looks good to me, but Luigi should be the main approver.
Currently on hold until the ProMP test can be reworked |
61eb25a
to
70bda6e
Compare
70bda6e
to
5fe22c1
Compare
5fe22c1
to
52d5f4d
Compare
Changing the logging scheme for VR to directly log the joystick pose/velocity and button inputs - a/b/trigger. On replay, it interpolates the pose/velocity of the controller. Trackers are also logged, with the restriction that the set of trackers has to be the same as recording (could do more flexible setup in the future). Adding button to load the latest modified csv file in the logs directory for quicker playback.