Skip to content

Commit

Permalink
led: allow to use namespaced mavros (from #439)
Browse files Browse the repository at this point in the history
rosout_agg cannot be namespaced:
https://github.com/ros/ros_comm/blob/f5fa3a168760d62e9693f10dcb9adfffc6132d22/tools/rosout/rosout.cpp#L127

Co-Authored-By: Playergeek181 <93044104+Playergeek181@users.noreply.github.com>
  • Loading branch information
okalachev and Playergeek181 committed Oct 29, 2022
1 parent 26245df commit b855c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clover/src/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ int main(int argc, char **argv)

auto set_effect = nh.advertiseService("set_effect", &setEffect);

auto mavros_state_sub = nh.subscribe("/mavros/state", 1, &handleMavrosState);
auto battery_sub = nh.subscribe("/mavros/battery", 1, &handleBattery);
auto mavros_state_sub = nh.subscribe("mavros/state", 1, &handleMavrosState);
auto battery_sub = nh.subscribe("mavros/battery", 1, &handleBattery);
auto rosout_sub = nh.subscribe("/rosout_agg", 1, &handleLog);

timer = nh.createTimer(ros::Duration(0), &proceed, false, false);
Expand Down

0 comments on commit b855c45

Please sign in to comment.