Skip to content

Remove using namespace rclcpp/Eigen from public headers; qualify types - #19

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

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

Conversation

@mmmarinho

Copy link
Copy Markdown
Member

Public headers (client/server/ros) no longer leak using namespace rclcpp; or bare Eigen types (previously inherited transitively from the sas_core compatibility shims). Node/Subscription/Publisher are qualified with rclcpp:: and VectorXd/VectorXi with Eigen::.

Note: the core Clock in sas_robot_driver_ros.hpp is intentionally left unqualified — it is marinholab::sas::core::Clock, not rclcpp::Clock.

Depends on the companion MarinhoLab/sas_cpp PR that stops the public headers from leaking using namespace Eigen; (until both are merged, this package builds fine because the current libmarinholab-sas-core deb still provides the leak, but the Eigen:: qualifications are correct either way).

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 24, 2026
1 of 2 checks passed
@mmmarinho
mmmarinho deleted the openhands/qualify-namespace-types branch September 24, 2026 17:41
@mmmarinho
mmmarinho restored the openhands/qualify-namespace-types branch September 25, 2026 00:35
@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