Skip to content

Commit

Permalink
Merge pull request #8 from mrpt-ros-pkg/use-gnss-base-topic-name
Browse files Browse the repository at this point in the history
Reuse base class publish topic name
  • Loading branch information
jlblancoc authored Aug 8, 2024
2 parents c421f63 + a2a76f8 commit 32d7609
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, publish_topic_);

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

0 comments on commit 32d7609

Please sign in to comment.