Skip to content

Remove 'using namespace rclcpp'/'Eigen' usings; qualify types - #20

Merged
mmmarinho merged 1 commit into
jazzyfrom
openhands/qualify-namespace-types
Sep 25, 2026
Merged

mmmarinho merged 1 commit into
jazzyfrom
openhands/qualify-namespace-types

Conversation

@mmmarinho

Copy link
Copy Markdown
Member

Companion to the using namespace guardrail in MarinhoLab/sas_devel (PR #8).

Removes using namespace rclcpp; and using namespace Eigen; from public headers and qualifies the affected rclcpp / Eigen types at the use sites, so that headers no longer leak those namespaces into every translation unit that includes them.

This PR was created by an AI agent (OpenHands) on behalf of the repository owner.

Public headers (client/server/ros) no longer leak 'using namespace rclcpp;'
or Eigen types (previously inherited transitively from the sas_core
compatibility shims). Node/Subscription/Publisher are qualified with
rclcpp:: and VectorXd/VectorXi with Eigen::. The core 'Clock' in
sas_robot_driver_ros.hpp is intentionally left unqualified: it is
marinholab::sas::core::Clock, not rclcpp::Clock.
The Eigen qualification depends on the companion sas_cpp change that stops
the public headers from leaking 'using namespace Eigen;'.

This PR was created by an AI agent (OpenHands) on behalf of the repository owner.

@mmmarinho mmmarinho left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

👍

@mmmarinho
mmmarinho merged commit 1e44bfd into jazzy Sep 25, 2026
3 of 4 checks passed
@mmmarinho
mmmarinho deleted the openhands/qualify-namespace-types branch September 25, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant