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 misleading error log #57

Merged
merged 1 commit into from
Sep 29, 2016
Merged

Conversation

stonier
Copy link
Contributor

@stonier stonier commented Sep 26, 2016

This was introduced in #43.

It is not actually correct - you can feasibly get feedback here before a new goal is confirmed. See send_goal(). Note that stop_tracking_goal() performs a self.gh = None reset:

    def send_goal(self, goal, done_cb=None, active_cb=None, feedback_cb=None):
        # destroys the old goal handle
        self.stop_tracking_goal()

        ...

        self.gh = self.action_client.send_goal(goal, self._handle_transition, self._handle_feedback)

and of course it will take more time on top of this for the server to actually process the incoming goal and confirm it. Meantime, it may have sent us feedback messages.

This was introduced in ros#43.

It is not actually correct - you can feasibly get feedback here before a new goal is confirmed. See `send_goal()`....

```
    def send_goal(self, goal, done_cb=None, active_cb=None, feedback_cb=None):
        # destroys the old goal handle
        self.stop_tracking_goal()

        ...

        self.gh = self.action_client.send_goal(goal, self._handle_transition, self._handle_feedback)
```
and of course it will take more time on top of this for the server to actually process the incoming goal and confirm it. Meantime, it may have sent us feedback messages.
@mikaelarguedas
Copy link
Member

Nice catch, thanks !

For @ablakey 's defense, this line has been around since at least 2011

@ablakey
Copy link
Contributor

ablakey commented Sep 29, 2016

Yup, apologies for the massive hit #43 had on git blame due to the cleanup. Not aware of any way to clean up lots of code without complicating history.

@mikaelarguedas mikaelarguedas merged commit 32ce9fd into ros:indigo-devel Sep 29, 2016
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