Skip to content

Commit

Permalink
Fixed bug in RobotVelocity, in which linear and angular velocity comp…
Browse files Browse the repository at this point in the history
…onents where swapped when converting from franka::CartesianVelocities
  • Loading branch information
TimSchneider42 committed Jun 4, 2024
1 parent 67e690f commit 72f15ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robot_velocity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ RobotVelocity::RobotVelocity(const Vector7d &vector_repr)
RobotVelocity::RobotVelocity(const franka::CartesianVelocities franka_velocity)
: RobotVelocity(
Twist{
Vector6d::Map(franka_velocity.O_dP_EE.data()).tail<3>(),
Vector6d::Map(franka_velocity.O_dP_EE.data()).head<3>()
Vector6d::Map(franka_velocity.O_dP_EE.data()).head<3>(),
Vector6d::Map(franka_velocity.O_dP_EE.data()).tail<3>()
}, franka_velocity.elbow[0]) {}

Vector7d RobotVelocity::vector_repr() const {
Expand Down

0 comments on commit 72f15ea

Please sign in to comment.