-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bugfix - lidarview pose3d #984
Conversation
osgar/tools/lidarview.py
Outdated
@@ -416,14 +416,15 @@ def _step(self, direction): | |||
arr = deserialize(data) | |||
assert len(arr) == 3 | |||
self.pose = (arr[0]/1000.0, arr[1]/1000.0, math.radians(arr[2]/100.0)) | |||
if stream_id in [self.pose2d_id, self.pose3d_id]: |
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.
well, it is probably not correct - I would add there elif stream_id in [self.pose2d_id, self.pose3d_id]:
and inside handle if pose2d else pose3d and them common crazy correction for g_rotation_offset_rad :(
osgar/tools/lidarview.py
Outdated
keyframe = self.keyframe | ||
self.keyframe = False | ||
return timestamp, self.frame, self.pose, self.pose3d, self.scan, self.scan2, self.image, self.image2, self.bbox, self.joint, keyframe, self.title, False | ||
if self.lidar_id is None and self.camera_id is None: |
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 if section not lidar and not camera is really INSIDE the processing of pose (future pose3d) and it is ment to define keyframe (lidar is primary, camera secondary and pose is tertiary)
Thanks for comments, please check my fix. |
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 looks better, thanks
The lidarview does not work if only pose3d is available. It looks there is just wrong indentation. However, i am not sure so please for careful review.