Skip to content

Commit

Permalink
[bugfix] Fixed bug for fixed-based robots
Browse files Browse the repository at this point in the history
  • Loading branch information
cmastalli committed Apr 3, 2024
1 parent 6582b37 commit 02bcd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/crocoddyl_msgs/whole_body_trajectory_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class WholeBodyTrajectoryRosPublisher {

// Initialize the vectors and dimensions
const std::size_t root_joint_id = getRootJointId(model_);
const std::size_t nv_root = model_.joints[root_joint_id].nv();
const std::size_t nv_root = getRootDim(model_);
qfull_ = Eigen::VectorXd::Zero(model_.nq);
vfull_ = Eigen::VectorXd::Zero(model_.nv);
ufull_ = Eigen::VectorXd::Zero(model_.nv - nv_root);
Expand Down

0 comments on commit 02bcd9a

Please sign in to comment.