-
Notifications
You must be signed in to change notification settings - Fork 45
Interpolation #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ros1
Are you sure you want to change the base?
Interpolation #34
Changes from all commits
939e88e
91eeaee
99b9240
334d5cf
c61f3c4
fee82b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <library path="libmoveit_ros_control_interface_trajectory_plugin"> | ||
| <class | ||
| name="Cartesian-Impedance-Controller/CartesianImpedance_trajectory_controller" | ||
| type="moveit_ros_control_interface::JointTrajectoryControllerAllocator" | ||
| base_class_type="moveit_ros_control_interface::ControllerHandleAllocator" | ||
| > | ||
| <description> | ||
| Controller description | ||
| </description> | ||
| </class> | ||
| </library> | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -561,7 +561,49 @@ namespace cartesian_impedance_controller | |||||||||
| this->traj_running_ = true; | ||||||||||
| this->traj_start_ = ros::Time::now(); | ||||||||||
| this->traj_index_ = 0; | ||||||||||
| trajUpdate(); | ||||||||||
|
|
||||||||||
| // Pre-compute Cartesian poses for all trajectory points | ||||||||||
| this->traj_positions_.clear(); | ||||||||||
| this->traj_orientations_.clear(); | ||||||||||
| this->traj_positions_.reserve(trajectory.points.size()); | ||||||||||
| this->traj_orientations_.reserve(trajectory.points.size()); | ||||||||||
|
|
||||||||||
| for (size_t i = 0; i < trajectory.points.size(); ++i) | ||||||||||
| { | ||||||||||
| // Robustness Check: Joint size | ||||||||||
| if (trajectory.points.at(i).positions.size() != this->n_joints_) { | ||||||||||
| ROS_ERROR("Trajectory point %zu has incorrect number of joints (%zu vs %zu). Aborting trajectory.", | ||||||||||
| i, trajectory.points.at(i).positions.size(), this->n_joints_); | ||||||||||
|
Comment on lines
+575
to
+576
|
||||||||||
| ROS_ERROR("Trajectory point %zu has incorrect number of joints (%zu vs %zu). Aborting trajectory.", | |
| i, trajectory.points.at(i).positions.size(), this->n_joints_); | |
| ROS_ERROR("Trajectory point %zu has incorrect number of joints (expected %zu, got %zu). Aborting trajectory.", | |
| i, this->n_joints_, trajectory.points.at(i).positions.size()); |
Copilot
AI
Nov 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment on line 681 is misleading. The default alpha is set to 1.0 regardless of whether the segment duration is invalid. When dt <= 1e-6, alpha remains at the initial value of 1.0 (not clamped to it), which jumps directly to the next waypoint. Consider clarifying the comment to reflect that alpha=1.0 is used as a fallback when segment duration is too small or negative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description field is generic and uninformative. It should provide a meaningful description of the Cartesian Impedance Controller's purpose and capabilities for MoveIt users.