Skip to content

Commit

Permalink
Initialize segments in constructor of DHRobot in calibration.hpp (#1197)
Browse files Browse the repository at this point in the history
Also add missing #include <cassert>
  • Loading branch information
b-bremer authored Dec 3, 2024
1 parent e949995 commit d8517e7
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
@@ -44,6 +44,7 @@
#ifndef UR_CALIBRATION__CALIBRATION_HPP_
#define UR_CALIBRATION__CALIBRATION_HPP_

#include <cassert>
#include <Eigen/Dense>
#include <fstream>
#include <string>
@@ -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;

0 comments on commit d8517e7

Please sign in to comment.