Skip to content

Commit

Permalink
[parser/mjcf] Simplify concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Nov 13, 2024
1 parent ace63a6 commit ea6a22e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion include/pinocchio/parsers/mjcf/mjcf-graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ namespace pinocchio
maxConfig = Eigen::VectorXd::Constant(1, infty);
springStiffness = Eigen::VectorXd::Constant(1, v);
springReference = Eigen::VectorXd::Constant(1, v);
;
friction = Eigen::VectorXd::Constant(1, 0.);
damping = Eigen::VectorXd::Constant(1, 0.);
armature = Eigen::VectorXd::Constant(1, 0.);
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/mjcf/mjcf-graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace pinocchio
ret.springStiffness.tail(1) = range.springStiffness;

ret.armature.conservativeResize(armature.size() + Nv);
ret.armature.tail(Nv) = Vector::Constant(Nv, range.armature[0]);
ret.armature.tail(Nv) = range.armature;

return ret;
}
Expand Down

0 comments on commit ea6a22e

Please sign in to comment.