Skip to content

Commit

Permalink
Add ros publisher copy operator
Browse files Browse the repository at this point in the history
  • Loading branch information
raultapia committed Aug 27, 2024
1 parent 87ba24f commit fc44d34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/rush/ros-cv-bridge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ class Publisher : public ros::Publisher {
using ros::Publisher::Publisher;

public:
Publisher &operator=(const ros::Publisher &x) {
ros::Publisher::operator=(x);
return *this;
}

/**
* @brief Publishes an OpenCV Mat as a ROS Image message.
* @param img The input OpenCV Mat to be published.
Expand Down

0 comments on commit fc44d34

Please sign in to comment.