Skip to content

Commit

Permalink
fix pure rolling task size
Browse files Browse the repository at this point in the history
  • Loading branch information
alaurenzi committed Jul 25, 2024
1 parent 7ecafaa commit cb46fb1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/tasks/velocity/PureRolling.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#include <OpenSoT/tasks/velocity/PureRolling.h>

OpenSoT::tasks::velocity::PureRolling::PureRolling(std::string wheel_link_name,
double radius,
const XBot::ModelInterface& model):
Task<Eigen::MatrixXd, Eigen::VectorXd>("PURE_ROLLING_" + wheel_link_name, model.getJointNum()),
OpenSoT::tasks::velocity::PureRolling::PureRolling(std::string wheel_link_name,
double radius,
const XBot::ModelInterface& model):
Task<Eigen::MatrixXd, Eigen::VectorXd>("PURE_ROLLING_" + wheel_link_name, model.getNv()),
_model(model),
_radius(radius),
_wheel_link_name(wheel_link_name),
_wheel_axis(0, 0, 1),
_world_contact_plane_normal(0, 0, 1)
{
Eigen::VectorXd q;
model.getJointPosition(q);

_update();

setOutwardNormal(_world_contact_plane_normal);
Expand Down Expand Up @@ -91,7 +90,7 @@ OpenSoT::tasks::velocity::PureRollingPosition::PureRollingPosition(std::string w
double radius,
const XBot::ModelInterface& model,
const bool control_z):
Task<Eigen::MatrixXd, Eigen::VectorXd>("PURE_ROLLING_POSITION_" + wheel_link_name, model.getJointNum())
Task<Eigen::MatrixXd, Eigen::VectorXd>("PURE_ROLLING_POSITION_" + wheel_link_name, model.getNv())
{
_pure_rolling.reset(new OpenSoT::tasks::velocity::PureRolling(
wheel_link_name, radius, model));
Expand Down Expand Up @@ -130,7 +129,7 @@ void OpenSoT::tasks::velocity::PureRollingPosition::_log(XBot::MatLogger2::Ptr l
OpenSoT::tasks::velocity::PureRollingOrientation::PureRollingOrientation(std::string wheel_link_name,
double radius,
const XBot::ModelInterface& model):
Task<Eigen::MatrixXd, Eigen::VectorXd>("PURE_ROLLING_ORIENTATION_" + wheel_link_name, model.getJointNum())
Task<Eigen::MatrixXd, Eigen::VectorXd>("PURE_ROLLING_ORIENTATION_" + wheel_link_name, model.getNv())
{
_pure_rolling.reset(new OpenSoT::tasks::velocity::PureRolling(
wheel_link_name, radius, model));
Expand Down

0 comments on commit cb46fb1

Please sign in to comment.