Skip to content

Commit

Permalink
Added _velocity_refs_are_local = false; at every setReference where v…
Browse files Browse the repository at this point in the history
…elocity is set.
  • Loading branch information
EnricoMingo committed Oct 10, 2024
1 parent e409979 commit a9fa3d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tasks/velocity/Cartesian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ void Cartesian::setReference(const KDL::Frame& desiredPose)
void Cartesian::setReference(const Eigen::Affine3d& desiredPose,
const Eigen::Vector6d& desiredTwist)
{
_velocity_refs_are_local = false;
_desiredPose = desiredPose;
_desiredTwist = desiredTwist;
_desiredTwistRef = _desiredTwist;
Expand All @@ -158,6 +159,7 @@ void Cartesian::setReference(const Eigen::Affine3d& desiredPose,
void Cartesian::setReference(const Eigen::Matrix4d &desiredPose,
const Eigen::Vector6d &desiredTwist)
{
_velocity_refs_are_local = false;
_desiredPose.matrix() = desiredPose;
_desiredTwist = desiredTwist;
_desiredTwistRef = _desiredTwist;
Expand All @@ -167,6 +169,7 @@ void Cartesian::setReference(const Eigen::Matrix4d &desiredPose,
void Cartesian::setReference(const KDL::Frame& desiredPose,
const KDL::Twist& desiredTwist)
{
_velocity_refs_are_local = false;
_desiredPose(0,3) = desiredPose.p.x();
_desiredPose(1,3) = desiredPose.p.y();
_desiredPose(2,3) = desiredPose.p.z();
Expand Down

0 comments on commit a9fa3d9

Please sign in to comment.