-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: integration
Are you sure you want to change the base?
Rtk filtering offset #667
Conversation
…into rtk_filtering_offset
…into rtk_filtering_offset
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.
first pass
self.gps_has_timeout = True | ||
|
||
if self.imu_has_timeout == True: | ||
rospy.signal_shutdown("Both IMU and GPS have timed out") |
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.
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") |
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.
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 |
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.
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) |
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.
I think we can get rid of this and just make the else statement happen no matter what
30aea7d
to
6d06b3f
Compare
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)