Skip to content

Commit

Permalink
Initialize segments in constructor of DHRobot in calibration.hpp (bac…
Browse files Browse the repository at this point in the history
…kport of #1197)

Also add missing #include <cassert>

(cherry picked from commit d8517e7)

Co-authored-by: Benjamin <871576+b-bremer@users.noreply.github.com>
  • Loading branch information
mergify[bot] and b-bremer authored Dec 3, 2024
1 parent 6f074bb commit 56c08dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ur_calibration/include/ur_calibration/calibration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#ifndef UR_CALIBRATION__CALIBRATION_HPP_
#define UR_CALIBRATION__CALIBRATION_HPP_

#include <cassert>
#include <Eigen/Dense>
#include <fstream>
#include <string>
Expand Down Expand Up @@ -111,7 +112,7 @@ struct DHRobot
/*!
* \brief Create a new robot representation giving a set of \ref DHSegment objects
*/
explicit DHRobot(const std::vector<DHSegment>& segments)
explicit DHRobot(const std::vector<DHSegment>& segments) : segments_(segments)
{
delta_theta_correction2_ = 0;
delta_theta_correction3_ = 0;
Expand Down

0 comments on commit 56c08dd

Please sign in to comment.