-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add a extrapolator for poses. #430
Conversation
This will be used in Cartographer ROS to extrapolate poses for tf. PAIR=damonkohler
void PoseExtrapolator::AddPose(const common::Time time, | ||
const transform::Rigid3d& pose) { | ||
timed_pose_queue_.push_back(TimedPose{time, pose}); | ||
while (timed_pose_queue_.size() > 2 && |
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 would not expect a method called Add* to pop items off the vector.
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 is consistent with the code base. The interesting fact is that this adds new pose information.
common::ToSeconds(last_time - timed_pose_queue_.front().time); | ||
const transform::Rigid3d& last_pose = last_timed_pose.pose; | ||
const Eigen::Vector3d linear_velocity = | ||
(last_pose.translation() - timed_pose_queue_.front().pose.translation()) / |
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.
since you use a local var for last_timed_pose, maybe also do:
recent_timed_pose = timed_pose_queue_.front()
const transform::Rigid3d& last_pose = last_timed_pose.pose; | ||
const Eigen::Vector3d linear_velocity = | ||
(last_pose.translation() - timed_pose_queue_.front().pose.translation()) / | ||
queue_delta; |
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.
can this be 0?
Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430.
Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430.
* flatbuffers: flatbuffers versions of cartographer protos are now generated Add a extrapolator for poses. (cartographer-project#430) fix num submaps in trimmer_test (cartographer-project#424) Better tuning for 2D. (cartographer-project#428) Fix debug build (cartographer-project#418) Fix proto_stream to support 32-bit platforms. (cartographer-project#427) Draw Trajectories onto X-Rays and ProbabilityGrids. (cartographer-project#421)
…ct#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430.
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
…(#451) Fixes cartographer-project/cartographer#102 for Cartographer ROS. Direct users of the Cartographer library can make use of cartographer-project/cartographer#430. Original commit: cartographer-project/cartographer_ros@d60e1e2
In the (non-offline) node, subscribing to the IMU topic was controlled by the 2D options even for 3D SLAM. It now correctly subscribes always similar to the offline node.
This will be used in Cartographer ROS to extrapolate poses for tf.
PAIR=damonkohler