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

[RST-7809] Port fix for negative pi initial conditions from ROS1 to ROS2 #335

Open
wants to merge 2 commits into
base: rolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fuse_constraints/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CORE GTESTS ======================================================================================
set(TEST_TARGETS
test_absolute_constraint
test_absolute_orientation_2d_stamped_constraint
test_absolute_orientation_3d_stamped_constraint
test_absolute_orientation_3d_stamped_euler_constraint
test_absolute_pose_2d_stamped_constraint
Expand Down
4 changes: 2 additions & 2 deletions fuse_constraints/test/test_absolute_constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ TEST(AbsoluteConstraint, AbsoluteOrientation2DOptimization)
auto variable = fuse_variables::Orientation2DStamped::make_shared(
rclcpp::Time(1234, 5678),
fuse_core::uuid::generate("tiktok"));
variable->yaw() = 0.7;
variable->setYaw(0.7);
// Create an absolute constraint
fuse_core::Vector1d mean;
mean << 7.0;
Expand All @@ -428,7 +428,7 @@ TEST(AbsoluteConstraint, AbsoluteOrientation2DOptimization)
ceres::Solver::Summary summary;
ceres::Solve(options, &problem, &summary);
// Check
EXPECT_NEAR(7.0 - 2 * M_PI, variable->yaw(), 1.0e-5);
EXPECT_NEAR(7.0 - 2 * M_PI, variable->getYaw(), 1.0e-5);
// Compute the covariance
std::vector<std::pair<const double *, const double *>> covariance_blocks;
covariance_blocks.emplace_back(variable->data(), variable->data());
Expand Down
Loading