Skip to content

Commit

Permalink
publisher needs to be non const
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Dec 30, 2023
1 parent c8732b9 commit 43bd4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_roscpp/test/src/subscribe_self.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bool g_success = false;
bool g_failure = false;
int32_t g_msg_i = -1;

void subscriberCallback(const ros::SingleSubscriberPublisher&, const ros::Publisher& pub)
void subscriberCallback(const ros::SingleSubscriberPublisher&, ros::Publisher& pub)
{
test_roscpp::TestArray outmsg;
for(int i=0;i<g_msg_count;i++)
Expand Down

0 comments on commit 43bd4ee

Please sign in to comment.