Skip to content

Commit

Permalink
make linters happy
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Feb 14, 2024
1 parent 8b87df6 commit 5d0a2d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RawPublisher
public:
virtual ~RawPublisher() {}

virtual std::string getTransportName() const override
std::string getTransportName() const override
{
return "raw";
}
Expand All @@ -65,27 +65,28 @@ class RawPublisher
{
}

RawPublisher::TypedEncodeResult encodeTyped(const sensor_msgs::msg::PointCloud2 & raw) const override
RawPublisher::TypedEncodeResult encodeTyped(const sensor_msgs::msg::PointCloud2 & raw) const
override
{
return raw;
}

protected:
virtual void publish(
void publish(
const sensor_msgs::msg::PointCloud2 & message,
const PublishFn & publish_fn) const override
{
publish_fn(message);
}

virtual void publish(
void publish(
const sensor_msgs::msg::PointCloud2::ConstSharedPtr & message_ptr,
const PublishFn & publish_fn) const override
{
publish_fn(*message_ptr);
}

virtual std::string getTopicToAdvertise(const std::string & base_topic) const override
std::string getTopicToAdvertise(const std::string & base_topic) const override
{
return base_topic;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class SimplePublisherPlugin : public point_cloud_transport::PublisherPlugin
protected:
std::string base_topic_;

virtual void advertiseImpl(
void advertiseImpl(
std::shared_ptr<rclcpp::Node> node, const std::string & base_topic,
rmw_qos_profile_t custom_qos,
const rclcpp::PublisherOptions & options) override
Expand Down
3 changes: 2 additions & 1 deletion point_cloud_transport/src/publisher_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ void PublisherPlugin::advertise(
advertiseImpl(node, base_topic, custom_qos, options);
}

void PublisherPlugin::publishPtr(const sensor_msgs::msg::PointCloud2::ConstSharedPtr & message) const
void PublisherPlugin::publishPtr(const sensor_msgs::msg::PointCloud2::ConstSharedPtr & message)
const
{
publish(*message);
}
Expand Down

0 comments on commit 5d0a2d0

Please sign in to comment.