Skip to content

Commit 1b12669

Browse files
authored
Fix topic name (#9) (#163)
Signed-off-by: wep21 <[email protected]> Signed-off-by: Takayuki AKAMINE <[email protected]>
1 parent b6187dd commit 1b12669

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ublox_gps/include/ublox_gps/ublox_firmware7plus.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class UbloxFirmware7Plus : public UbloxFirmware {
3535
: UbloxFirmware(updater, gnss, node), frame_id_(frame_id), freq_diag_(freq_diag) {
3636
// NavPVT publisher
3737
if (getRosBoolean(node_, "publish.nav.pvt")) {
38-
nav_pvt_pub_ = node_->create_publisher<NavPVT>("navpvt", 1);
38+
nav_pvt_pub_ = node_->create_publisher<NavPVT>("~/navpvt", 1);
3939
}
4040

4141
fix_pub_ =
42-
node_->create_publisher<sensor_msgs::msg::NavSatFix>("fix", 1);
42+
node_->create_publisher<sensor_msgs::msg::NavSatFix>("~/fix", 1);
4343
vel_pub_ =
44-
node_->create_publisher<geometry_msgs::msg::TwistWithCovarianceStamped>("fix_velocity",
44+
node_->create_publisher<geometry_msgs::msg::TwistWithCovarianceStamped>("~/fix_velocity",
4545
1);
4646
}
4747

ublox_gps/src/ublox_firmware6.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ UbloxFirmware6::UbloxFirmware6(const std::string & frame_id, std::shared_ptr<dia
3636
}
3737

3838
fix_pub_ =
39-
node_->create_publisher<sensor_msgs::msg::NavSatFix>("fix", 1);
39+
node_->create_publisher<sensor_msgs::msg::NavSatFix>("~/fix", 1);
4040

4141
if (getRosBoolean(node_, "publish.nav.velned")) {
4242
nav_vel_ned_pub_ =
4343
node_->create_publisher<ublox_msgs::msg::NavVELNED>("navvelned", 1);
4444
}
4545

4646
vel_pub_ =
47-
node_->create_publisher<geometry_msgs::msg::TwistWithCovarianceStamped>("fix_velocity",
47+
node_->create_publisher<geometry_msgs::msg::TwistWithCovarianceStamped>("~/fix_velocity",
4848
1);
4949

5050
if (getRosBoolean(node_, "publish.nav.sol")) {

0 commit comments

Comments
 (0)