Skip to content
Snippets Groups Projects

local trajectory: evaluate returns twist; platform controller: uses feed forward term

Merged Fabian Reister requested to merge feature/improved-platform-controller into dev
1 unresolved thread

@groegerto fyi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
710 const auto& global_T_wp_before = lower->pose;
711
712 // the waypoint after this timestamp
713 const auto& global_T_wp_after = lower[1].pose;
714
709 715 // fraction of time between segment end points
710 716 const float t = d1 / dT;
711 math::LinearInterpolatedPose ip(lower->pose.matrix(), lower[1].pose.matrix(), 0, 1, true);
717 math::LinearInterpolatedPose ip(global_T_wp_before.matrix(), global_T_wp_after.matrix(), 0, 1, true);
718
719 const core::Pose wp_before_T_wp_after = global_T_wp_before.inverse() * global_T_wp_after;
712 720
721 const Eigen::Matrix3f& global_R_wp_before = global_T_wp_before.linear();
722
723 // the movement direction in the global frame
724 const Eigen::Vector3f global_V_linear_movement_direction = global_R_wp_before * wp_before_T_wp_after.translation().normalized();
  • I have a small question about the coordinate calculations. Wouldn't the movement direction in the global frame also just be the difference of the translation between the two poses in the global frame. So something like this:
    global_V_linear_movement_direction = (global_T_wp_after.translation() - global_T_wp_before.translation()).normalized()

    Does that work as well or am I missing something?

  • Please register or sign in to reply
  • you are right. but let's keep it as it is

  • Please register or sign in to reply
    Loading