Skip to content

Commit

Permalink
fixed tutorial examples test build
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoussan committed Jun 7, 2024
1 parent 5d4ff97 commit 5e91f37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ int PoseFactorAdder<PoseNodeAdderType>::AddFactorsForSingleMeasurement(
const gtsam::PriorFactor<gtsam::Pose3>::shared_ptr pose_prior_factor(
new gtsam::PriorFactor<gtsam::Pose3>(pose_key, measurement.pose, pose_noise));
factors.push_back(pose_prior_factor);
return 1;
}

template <class PoseNodeAdderType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int RelativePoseFactorAdder<PoseNodeAdderType>::AddFactorsForSingleMeasurement(
template <class PoseNodeAdderType>
bool RelativePoseFactorAdder<PoseNodeAdderType>::CanAddFactor(
const localization_measurements::RelativePoseWithCovarianceMeasurement& measurement) const {
return node_adder_->CanAddNode(measurement.time_a) && node_adder_->CanAddNode(measurement.time_b);
return node_adder_->CanAddNode(measurement.timestamp_a) && node_adder_->CanAddNode(measurement.timestamp_b);
}
} // namespace factor_adders

Expand Down
4 changes: 2 additions & 2 deletions localization/tutorial_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ if(CATKIN_ENABLE_TESTING)
test/test_simple_localizer.cc
)
target_link_libraries(test_simple_localizer
${PROJECT_NAME} ${catkin_LIBRARIES}
${catkin_LIBRARIES}
)
add_rostest_gtest(test_simple_odometry
test/test_simple_odometry.test
test/test_simple_odometry.cc
)
target_link_libraries(test_simple_odometry
${PROJECT_NAME} ${catkin_LIBRARIES}
${catkin_LIBRARIES}
)

endif()

0 comments on commit 5e91f37

Please sign in to comment.