Skip to content

Commit

Permalink
Reuse base class publish topic name
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Aug 8, 2024
1 parent c421f63 commit fc18cc2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mrpt_sensor_gnss_nmea/src/mrpt_sensor_gnss_nmea_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ void process_gps(

auto& pubs = NMEA_Pubs::Instance();

std::string publish_topic = "sensor";
node.declare_parameter("publish_topic", publish_topic);
node.get_parameter("publish_topic", publish_topic);
pubs.ensure_pubs_are_created(node, publish_topic);
pubs.ensure_pubs_are_created(node, node.publish_topic());

std_msgs::msg::Header msgHeader;
msgHeader.frame_id = node.sensor_frame_id();
Expand Down

0 comments on commit fc18cc2

Please sign in to comment.