Skip to content
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

Implent JointRegularizationTask in TSID #170

Merged
merged 7 commits into from
Jan 22, 2021

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Jan 18, 2021

This PR:

  1. fixes a bug in Task::subA() method
  2. Implement JointRegularizationTask in TSID library

Comment on lines 71 to 92
bool setReferenceTrajectory(Eigen::Ref<const Eigen::VectorXd> jointPosition);

/**
* Set the desired reference trajectory.
* @param jointPosition vector containing the desired joint position in radians.
* @param jointVelocity vector containing the desired joint velocity in radians per second.
* @note The desired acceleration is implicitly set to zero.
* @return True in case of success, false otherwise.
*/
bool setReferenceTrajectory(Eigen::Ref<const Eigen::VectorXd> jointPosition,
Eigen::Ref<const Eigen::VectorXd> jointVelocity);

/**
* Set the desired reference trajectory.
* @param jointPosition vector containing the desired joint position in radians.
* @param jointVelocity vector containing the desired joint velocity in radians per second.
* @param jointAcceleration vector containing the desired joint velocity in radians per second square.
* @return True in case of success, false otherwise.
*/
bool setReferenceTrajectory(Eigen::Ref<const Eigen::VectorXd> jointPosition,
Eigen::Ref<const Eigen::VectorXd> jointVelocity,
Eigen::Ref<const Eigen::VectorXd> jointAcceleration);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not setting trajectories, but rather desired set points.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed here: 40b8882

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to mess up with you a little more 😁 setSetpointssounds funny, setReferencePoint? 😁

Comment on lines 21 to 22
constexpr std::string_view descriptionPrefix = "JointRegularizationTask Optimal Control "
"Element";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this adds any detail in the error messages. Also, it is no more an Optimal Control Element.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove here: 2734000

@GiulioRomualdi GiulioRomualdi merged commit 9a5d2df into master Jan 22, 2021
@GiulioRomualdi GiulioRomualdi deleted the TSID/joint_regularization branch January 22, 2021 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants