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

Fixed PID destructor bug, cleaned up code #29

Merged
merged 1 commit into from
Jul 15, 2013

Conversation

davetcoleman
Copy link
Member

Fixed issue where the control_toolbox::Pid class was destructed during initialization here:

control_toolbox::Pid pid;

Also lots of documentation and cleanup.

This PR is required for ros-controls/control_toolbox#1 to work properly


// Get URDF info about joint
urdf::Model urdf;
if (!urdf.initParam("robot_description"))
Copy link
Member

Choose a reason for hiding this comment

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

Why is it now required to have an URDF to use this controller? I also don't like the use of urdf::Model::initParam because you don't have a lot of control over where the parameter is coming from.

Copy link
Member Author

Choose a reason for hiding this comment

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

It already required that... previously this

init(hardware_interface::EffortJointInterface *robot, ros::NodeHandle &n)

function called the first (now removed)

init(hardware_interface::EffortJointInterface *robot, const std::string &joint_name, const control_toolbox::Pid &pid)

function, which then required a URDF be used.

I agree it would be nice to have a little more control over the param location, although you have some based on your NodeHandle's namespace. But this is a ros_controller, so I don't think we should spend too much time removing URDF dependencies.

Copy link
Member

Choose a reason for hiding this comment

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

That's really strange, I could have sworn I've used it without a node-scoped "robot_description" parameter. No worries, then.

davetcoleman added a commit that referenced this pull request Jul 15, 2013
Reviewed by @jbohren

Fixed PID destructor bug, cleaned up code
@davetcoleman davetcoleman merged commit f4cca54 into ros-controls:hydro-devel Jul 15, 2013
po1 added a commit to po1/ros_controllers that referenced this pull request Jan 31, 2014
efernandez pushed a commit that referenced this pull request Apr 12, 2018
…esired_param

Add control_frequency_desired param
Sarxell added a commit to miguelriemoliveira/ros_controllers that referenced this pull request Apr 14, 2022
Sarxell added a commit to miguelriemoliveira/ros_controllers that referenced this pull request Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants