From 56c08dd813f373d9b7bf5442a8a229742a5c8acc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 07:50:33 +0100 Subject: [PATCH] Initialize segments in constructor of DHRobot in calibration.hpp (backport of #1197) Also add missing #include (cherry picked from commit d8517e745419879dd59c20acb15278998226212d) Co-authored-by: Benjamin <871576+b-bremer@users.noreply.github.com> --- ur_calibration/include/ur_calibration/calibration.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ur_calibration/include/ur_calibration/calibration.hpp b/ur_calibration/include/ur_calibration/calibration.hpp index f6fdec8f0..6cfcc3f6b 100644 --- a/ur_calibration/include/ur_calibration/calibration.hpp +++ b/ur_calibration/include/ur_calibration/calibration.hpp @@ -44,6 +44,7 @@ #ifndef UR_CALIBRATION__CALIBRATION_HPP_ #define UR_CALIBRATION__CALIBRATION_HPP_ +#include #include #include #include @@ -111,7 +112,7 @@ struct DHRobot /*! * \brief Create a new robot representation giving a set of \ref DHSegment objects */ - explicit DHRobot(const std::vector& segments) + explicit DHRobot(const std::vector& segments) : segments_(segments) { delta_theta_correction2_ = 0; delta_theta_correction3_ = 0;