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

TrajectoryMonitor: zero sampling frequency disables recording #1542

Merged
merged 4 commits into from
Aug 8, 2019

Conversation

rhaschke
Copy link
Contributor

@rhaschke rhaschke commented Jul 6, 2019

Implements #1538 (comment).
@v4hn, should we disable the monitoring by default in PlanExecution?

Copy link
Contributor

@jschleicher jschleicher left a comment

Choose a reason for hiding this comment

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

I've just tested this using the rqt reconfigure plugin:
I need to set the limit to zero in https://github.com/ros-planning/moveit/blob/bc45aecc465daff77efe2b6c4f92f7c972925bbe/moveit_ros/planning/plan_execution/cfg/PlanExecutionDynamicReconfigure.cfg#L7

And then then disabling only works after the first request:
https://github.com/ros-planning/moveit/blob/bc45aecc465daff77efe2b6c4f92f7c972925bbe/moveit_ros/planning/plan_execution/include/moveit/plan_execution/plan_execution.h#L116-L117
Setting the frequency to zero before path was executed silently ignores this frequency...

As the TrajectoryMonitor may be initialized after the reconfigure callback,
we need to initialize the sampling frequency with the current value from parameter server.
@rhaschke
Copy link
Contributor Author

rhaschke commented Aug 7, 2019

Thanks a lot, @jschleicher, for carefully testing this and revealing those issues. This change looked so simple, but the devil is in the details (as usual).
I fixed both issues now, disabled trajectory recording by default, and tested locally 😉
Could you, please, give it another try?

@rhaschke rhaschke merged commit 81960fa into moveit:master Aug 8, 2019
@rhaschke rhaschke deleted the disable-traj-monitor branch August 8, 2019 19:53
v4hn pushed a commit to v4hn/moveit that referenced this pull request Mar 30, 2020
v4hn pushed a commit to v4hn/moveit that referenced this pull request Mar 31, 2020
v4hn pushed a commit to v4hn/moveit that referenced this pull request Mar 31, 2020
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