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

Implement blf-balancing-torque-control #707

Merged
merged 7 commits into from
Jul 26, 2023
Merged

Conversation

GiulioRomualdi
Copy link
Member

@GiulioRomualdi GiulioRomualdi commented Jul 17, 2023

⚠️ To be tested also in simulation

@isorrentino
Copy link
Collaborator

Here is a video of the test in simulation

balancing_torque_controller.mp4

@GiulioRomualdi GiulioRomualdi marked this pull request as ready for review July 21, 2023 08:59
@@ -653,6 +650,29 @@ bool YarpRobotControl::setReferences(Eigen::Ref<const Eigen::VectorXd> desiredJo
return false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

log()->error("[YarpRobotControl::setReferences] Unable to set the control modes.");

should be

log()->error("[YarpRobotControl::setControlMode] Unable to set the control modes.");

com_knots_delta_x (0.0, 0.0, 0.03, 0.03, -0.03, -0.03, 0.0, 0.0) # in meter
com_knots_delta_y (0.0, 0.05, 0.05, -0.05, -0.05, 0.05, 0.05, 0.0) # in meter
com_knots_delta_z (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) # in meter
#com_knots_delta_x (0.0, 0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0) # in meter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#com_knots_delta_x (0.0, 0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0) # in meter

com_knots_delta_y (0.0, 0.05, 0.05, -0.05, -0.05, 0.05, 0.05, 0.0) # in meter
com_knots_delta_z (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) # in meter
#com_knots_delta_x (0.0, 0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0) # in meter
#com_knots_delta_y (0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0, 0.0) # in meter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#com_knots_delta_y (0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0, 0.0) # in meter

com_knots_delta_z (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) # in meter
#com_knots_delta_x (0.0, 0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0) # in meter
#com_knots_delta_y (0.0, 0.0, 0.0, -0.0, -0.0, 0.0, 0.0, 0.0) # in meter
#com_knots_delta_z (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) # in meter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#com_knots_delta_z (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) # in meter

Comment on lines 480 to 484
# if not blf.text_logging.LoggerBuilder.set_factory(
# blf.text_logging.YarpLoggerFactory("balancing-torque-control")
# ):
# blf.log().error("Impossible to set the logger factory.")
# return False
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not know if you want to re-enable the logging. If not, you may cancel out these lines.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would say yes!

Comment on lines 488 to 489


Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change

@GiulioRomualdi GiulioRomualdi merged commit c5cf884 into master Jul 26, 2023
@GiulioRomualdi GiulioRomualdi deleted the balancing-torque branch July 26, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants