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

Fixes planning performance #147

Merged

Conversation

marinagmoreira
Copy link
Member

  • fixing inspection tool reading input and exiting

  • better performance in simulation

  • cleaning output

  • adding localization attitudes to jem static

@marinagmoreira marinagmoreira linked an issue Feb 17, 2024 that may be closed by this pull request
@marinagmoreira marinagmoreira requested a review from trey0 February 17, 2024 09:19
Copy link
Contributor

@trey0 trey0 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

astrobee/behaviors/inspection/tools/inspection_tool.cc Outdated Show resolved Hide resolved
while (ros::Time::now() - start_time < ros::Duration(3.0))
loop_rate.sleep();

ros::Duration(3.0).sleep();
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems worthwhile to log a message saying that it is sleeping (and why).

I'm assuming this is somehow related to ensuring the goal is delivered to the remote robot through the generic bridge? If so, it's not clear to me why it would help. I thought that the bridge didn't start establishing connections for a new message topic/type until the first message was received, so a delay in between creating the publisher and publishing the first message wouldn't help.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add a comment on this. When you declare a publisher you have to sleep a bit before publishing a message. This is not an issue when there is a connected_callback involved, but since we're doing remote commanding and waving that requirement, without this, the goal is not published. I can also lower the time involved, in retrospect 3s is too much..

@trey0
Copy link
Contributor

trey0 commented Feb 20, 2024

Closes #142

@trey0
Copy link
Contributor

trey0 commented Feb 20, 2024

  • I found this PR broke the exit codes in inspection_tool. My PR rebased off this PR includes a fix 5b4e68b . Let's discuss next steps before merging. Maybe we abandon merging this PR in its present form and switch to focusing on my PR that starts from here and includes fixes.

@trey0 trey0 self-requested a review February 20, 2024 20:26
Copy link
Contributor

@trey0 trey0 left a comment

Choose a reason for hiding this comment

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

See comment about exit codes...

Signed-off-by: Marina Moreira <[email protected]>
@marinagmoreira
Copy link
Member Author

  • I found this PR broke the exit codes in inspection_tool. My PR rebased off this PR includes a fix 5b4e68b . Let's discuss next steps before merging. Maybe we abandon merging this PR in its present form and switch to focusing on my PR that starts from here and includes fixes.

I applied your patch and will rebase your PR if needed to merge asap

@trey0
Copy link
Contributor

trey0 commented Feb 21, 2024

I applied your patch and will rebase your PR if needed to merge asap

As we discussed earlier, I liked your suggestion of merging my PR into this one. Just will save some hassle with rebasing my PR if your PR goes in with squash-and-merge.

@marinagmoreira marinagmoreira merged commit 3670191 into nasa:develop Feb 22, 2024
4 checks passed
@marinagmoreira marinagmoreira deleted the fixes_planning_performance branch February 22, 2024 04:30
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.

Optimize JEM bay motions for robustness and speed
2 participants