Skip to content

Conversation

@v4hn
Copy link
Member

@v4hn v4hn commented Aug 10, 2022

Melodic version of #376

Copy link
Member Author

@v4hn v4hn left a comment

Choose a reason for hiding this comment

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

I'm not sure whether the control_toolbox package should be resilient to such tiny dts (it only checks for 0.0), but at least this PR breaks PR2 initialization so I will close this PR.


double error = command_ - joint_state_->velocity_;
dt_ = time - last_time_;
dt_ = time - last_time_; //will be 0.0 if starting() was called on this iteration
Copy link
Member Author

Choose a reason for hiding this comment

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

This comment is actually wrong. dt_ will be an epsilon value because of the time that passed between starting and update. This leads to a HUGE i_error that can never be compensated later on.

@v4hn v4hn closed this Nov 10, 2023
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