Skip to content

Commit

Permalink
Scale reference pose when computing twist (differential pose) in VO
Browse files Browse the repository at this point in the history
  • Loading branch information
hmakelin committed May 10, 2024
1 parent 1e466c4 commit d60047a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion gisnav/gisnav/core/pose_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,17 @@ def camera_optical_twist_in_camera_optical_frame(
self, msg: MonocularStereoImage
) -> Optional[TwistWithCovarianceStamped]:
"""Camera pose in visual odometry world frame (i.e. previous query frame)"""
x, y, z = 320.0, 180.0, 205.0 # todo do not hard code
scaling = self._scaling_buffer.interpolate(
tf_.usec_from_header(msg.query.header)
)
if scaling is None:
return None

x, y, z = (
scaling * 320.0,
scaling * 180.0,
scaling * 205.0,
) # todo do not hard code
previous_pose = tf_.create_identity_pose_stamped(x, y, z)
current_pose = self._get_pose(msg)
if current_pose is not None:
Expand Down

0 comments on commit d60047a

Please sign in to comment.