-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: rolling
Are you sure you want to change the base?
Feat/Add LifecycleNode Support #109
Conversation
16c8087
to
7cbb9d3
Compare
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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; |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes (#107)
In progress ...