Skip to content

Commit d8517e7

Browse files
authored
Initialize segments in constructor of DHRobot in calibration.hpp (#1197)
Also add missing #include <cassert>
1 parent e949995 commit d8517e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ur_calibration/include/ur_calibration/calibration.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#ifndef UR_CALIBRATION__CALIBRATION_HPP_
4545
#define UR_CALIBRATION__CALIBRATION_HPP_
4646

47+
#include <cassert>
4748
#include <Eigen/Dense>
4849
#include <fstream>
4950
#include <string>
@@ -111,7 +112,7 @@ struct DHRobot
111112
/*!
112113
* \brief Create a new robot representation giving a set of \ref DHSegment objects
113114
*/
114-
explicit DHRobot(const std::vector<DHSegment>& segments)
115+
explicit DHRobot(const std::vector<DHSegment>& segments) : segments_(segments)
115116
{
116117
delta_theta_correction2_ = 0;
117118
delta_theta_correction3_ = 0;

0 commit comments

Comments
 (0)