Skip to content
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

Rtk filtering offset #667

Draft
wants to merge 40 commits into
base: integration
Choose a base branch
from
Draft

Rtk filtering offset #667

wants to merge 40 commits into from

Conversation

pearlastrid
Copy link
Contributor

Summary

Closes #(Your issue number here)

What features did you add, bugs did you fix, etc?

Did you add documentation to the wiki?

Yes/No (If not explain why not)

How was this code tested?

Summarize how you tested this code. Your objective here is to prove to the reviewers that this code actually works without them having to run it themselves. It is often helpful to include screenshots, tables, graphs, and/or a short write-up of testing procedures. Results can be either from sim, the robot, or both depending on what you think is sufficient for the feature you added.

Did you test this in sim?

Yes/No

Did you test this on the rover?

Yes/No

Did you add unit tests?

Yes/No (If not explain why not)

Copy link
Collaborator

@rbridges12 rbridges12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first pass

self.gps_has_timeout = True

if self.imu_has_timeout == True:
rospy.signal_shutdown("Both IMU and GPS have timed out")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we shutdown the node when both time out?

self.imu_has_timeout = True

if self.gps_has_timeout == True:
rospy.signal_shutdown("Both IMU and GPS have timed out")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

right_gps_sub : rospy.Subscriber
left_rtk_fix_sub: rospy.Subscriber
right_rtk_fix_sub: rospy.Subscriber
sync_gps_sub: rospy.Subscriber
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the right type?


if (right_rtk_fix_msg.RTK_FIX_TYPE == RTKStatus.RTK_FIX and left_rtk_fix_msg.RTK_FIX_TYPE == RTKStatus.RTK_FIX):
self.rtk_offset = quaternion_multiply(gps_yaw_quat, quaternion_conjugate(imu_yaw_quat))
imu_without_yaw = quaternion_multiply(quaternion_conjugate(imu_yaw_quat), imu_quat)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can get rid of this and just make the else statement happen no matter what

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants