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

Remove deprecated parameter hold_trajectory_duration #386

Conversation

AndyZe
Copy link
Contributor

@AndyZe AndyZe commented Nov 21, 2018

No description provided.

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Thanks for this.
Even though I'm approving now the CI may still fail if we have tests directly aimed at this. If any, those will need to be removed.

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

This change also removes the parameter we'd like to keep :)

@@ -229,6 +229,7 @@ bool JointTrajectoryController<SegmentImpl, HardwareInterface>::init(HardwareInt

// Stop trajectory duration
stop_trajectory_duration_ = 0.0;
controller_nh_.getParam("stop_trajectory_duration", stop_trajectory_duration_);
Copy link
Contributor

@mathias-luedtke mathias-luedtke Nov 22, 2018

Choose a reason for hiding this comment

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

For semantic reasons I'd prefer

stop_trajectory_duration_ =  controller_nh_.param("stop_trajectory_duration", 0.0);

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a copy&paste bug in the new commit. I rolled back to the original version again.
In addition the other parameters are retrieved the same way, so let's keep it like this for now.

@mathias-luedtke
Copy link
Contributor

mathias-luedtke commented Nov 22, 2018

Tests pass again, hold_trajectory_duration is not used elsewhere (in our repos).
https://github.com/ros-industrial/ur_modern_driver still has the old parameter name, but commented out.

@mathias-luedtke mathias-luedtke changed the title Remove deprecated warning. Remove deprecated parameter hold_trajectory_duration Nov 22, 2018
Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Other than the point @ipa-mdl raised I'm happy with the PR. Please feel free to merge once done

@AndyZe AndyZe force-pushed the melodic-remove-deprecated-warning branch from f8a907a to c7ef6e6 Compare November 24, 2018 04:35
@mathias-luedtke mathias-luedtke merged commit 723c4e9 into ros-controls:melodic-devel Nov 25, 2018
AdamPettinger pushed a commit to UTNuclearRobotics/ros_controllers that referenced this pull request Oct 30, 2019
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.

None yet

3 participants