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

Feat/Add LifecycleNode Support #109

Open
wants to merge 5 commits into
base: rolling
Choose a base branch
from

Conversation

elsayedelsheikh
Copy link

Closes (#107)
In progress ...

@elsayedelsheikh elsayedelsheikh force-pushed the feature/support_life_cycle_node branch from 16c8087 to 7cbb9d3 Compare February 2, 2025 19:03
Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

Two main ideas:

  • Don't apply style modifications because linter will complain
  • Keep old methods and deprecated them

@@ -0,0 +1,74 @@
// Copyright (c) 2009, Willow Garage, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Copyright (c) 2009, Willow Garage, Inc.
// Copyright (c) 2025, Open Source Robotics Foundation, Inc.

@@ -73,33 +77,33 @@ class Publisher

//! Publish a point cloud on the topics associated with this Publisher.
POINT_CLOUD_TRANSPORT_PUBLIC
void publish(const sensor_msgs::msg::PointCloud2 & message) const;
Copy link
Collaborator

Choose a reason for hiding this comment

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

changes below are not required.

@@ -67,7 +68,7 @@ class PublisherPlugin
//! \brief Advertise a topic, simple version.
POINT_CLOUD_TRANSPORT_PUBLIC
void advertise(
std::shared_ptr<rclcpp::Node> node,
NodeInterfaces::SharedPtr node_interfaces,
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should deprecate the old methods, we apply tic-toc, we deprecate the method in the release and we will remove them in the next one.

Same below

@@ -69,7 +69,7 @@ namespace point_cloud_transport
///
/// \tparam M Type of the published messages.
///
template<class M>
template <class M>
Copy link
Collaborator

Choose a reason for hiding this comment

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

restore style modfications

impl_->base_topic_ = point_cloud_topic;
impl_->loader_ = loader;

auto ns_len = node->get_effective_namespace().length();
// FIXME: rclcpp::node_interfaces::NodeBaseInterface neither have get_effective_namespace() nor get_sub_namespace()
Copy link
Author

Choose a reason for hiding this comment

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

Any suggestions?

Copy link
Author

Choose a reason for hiding this comment

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

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.

3 participants