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

Log environment variables with which gazebo was launched #680

Open
wants to merge 2 commits into
base: ros2
Choose a base branch
from

Conversation

arjo129
Copy link
Contributor

@arjo129 arjo129 commented Jan 2, 2025

🎉 New feature

Closes #

Summary

This can be useful for debugging scenarios where we want to debug why a simulation is not loading the correct files.

Test it

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

This can be useful for debugging scenarios where we want to debug why a simulation is not loading the correct files.

Signed-off-by: Arjo Chakravarty <[email protected]>
@ahcorde
Copy link
Collaborator

ahcorde commented Jan 6, 2025

This is something usefull, let me know when it's ready for review

@arjo129 arjo129 marked this pull request as ready for review January 7, 2025 02:03
@arjo129 arjo129 requested a review from ahcorde as a code owner January 7, 2025 02:03
Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

Great idea! Just a small comment.

@@ -126,7 +127,9 @@ def launch_gz(context, *args, **kwargs):
else:
on_exit = None

return [ExecuteProcess(
return [
LogInfo(f"Launching gazebo with the environment variables: {env}"),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if it's always safe to print the environment variables. Maybe be it can be enabled via a launch config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

3 participants