Skip to content
Snippets Groups Projects
Commit f263e5fa authored by jcarpent's avatar jcarpent
Browse files

[Joint] Set default value for indexes in JointModelBase

parent 94259309
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
#include "pinocchio/multibody/fwd.hpp"
#include <Eigen/Core>
#include <limits>
namespace se3
{
......@@ -426,12 +427,14 @@ namespace se3
/// Default constructor: protected.
///
/// Prevent the construction of stand-alone JointModelBase.
inline JointModelBase() {} // TODO: default value should be set to -1
inline JointModelBase() : i_id(std::numeric_limits<JointIndex>::max()), i_q(-1), i_v(-1) {}
/// Copy constructor: protected.
///
/// Copy of stand-alone JointModelBase are prevented, but can be used from inhereting
/// objects. Copy is done by calling copy operator.
inline JointModelBase( const JointModelBase& clone) { *this = clone; }
/// Copy operator: protected.
///
/// Copy of stand-alone JointModelBase are prevented, but can be used from inhereting
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment