Skip to content

Conversation

@saikishor
Copy link
Member

Just consolidates all get_logger calls with a single one that returns the member variable

Copy link
Collaborator

@eholum-nasa eholum-nasa left a comment

Choose a reason for hiding this comment

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

Good learnings for me here... though should we be using node logging in the system interface once the node is available? Doesn't seem like there's a significant difference.

mjvPerturb pert_;

// Logger
rclcpp::Logger logger_ = rclcpp::get_logger("MujocoSystemInterface");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh I did not realize this got constructed every time! Nice change!

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup!

@saikishor
Copy link
Member Author

Good learnings for me here... though should we be using node logging in the system interface once the node is available? Doesn't seem like there's a significant difference.

As it is a simulation, this is fine

@saikishor saikishor merged commit f10ab43 into ros-controls:main Dec 15, 2025
5 checks passed
@saikishor saikishor deleted the improve_logger branch December 15, 2025 17:52
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