Skip to content

Commit

Permalink
Use relative names for topics (#415)
Browse files Browse the repository at this point in the history
* Use relative name topics

* Use relative name topics in rviz config

* fix formatting
  • Loading branch information
fdila authored Jan 7, 2025
1 parent c78cd6c commit 2e31175
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ros/rviz/kiss_icp.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Visualization Manager:
Filter size: 10
History Policy: Keep Last
Reliability Policy: Best Effort
Value: /kiss/frame
Value: kiss/frame
Use Fixed Frame: true
Use rainbow: true
Value: true
Expand Down Expand Up @@ -93,7 +93,7 @@ Visualization Manager:
Filter size: 10
History Policy: Keep Last
Reliability Policy: Best Effort
Value: /kiss/keypoints
Value: kiss/keypoints
Use Fixed Frame: true
Use rainbow: true
Value: false
Expand Down Expand Up @@ -127,7 +127,7 @@ Visualization Manager:
Filter size: 10
History Policy: Keep Last
Reliability Policy: Best Effort
Value: /kiss/local_map
Value: kiss/local_map
Use Fixed Frame: true
Use rainbow: true
Value: true
Expand Down Expand Up @@ -170,7 +170,7 @@ Visualization Manager:
Filter size: 10
History Policy: Keep Last
Reliability Policy: Best Effort
Value: /kiss/odometry
Value: kiss/odometry
Value: true
Enabled: true
Global Options:
Expand Down
9 changes: 4 additions & 5 deletions ros/src/OdometryServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,11 @@ OdometryServer::OdometryServer(const rclcpp::NodeOptions &options)

// Initialize publishers
rclcpp::QoS qos((rclcpp::SystemDefaultsQoS().keep_last(1).durability_volatile()));
odom_publisher_ = create_publisher<nav_msgs::msg::Odometry>("/kiss/odometry", qos);
odom_publisher_ = create_publisher<nav_msgs::msg::Odometry>("kiss/odometry", qos);
if (publish_debug_clouds_) {
frame_publisher_ = create_publisher<sensor_msgs::msg::PointCloud2>("/kiss/frame", qos);
kpoints_publisher_ =
create_publisher<sensor_msgs::msg::PointCloud2>("/kiss/keypoints", qos);
map_publisher_ = create_publisher<sensor_msgs::msg::PointCloud2>("/kiss/local_map", qos);
frame_publisher_ = create_publisher<sensor_msgs::msg::PointCloud2>("kiss/frame", qos);
kpoints_publisher_ = create_publisher<sensor_msgs::msg::PointCloud2>("kiss/keypoints", qos);
map_publisher_ = create_publisher<sensor_msgs::msg::PointCloud2>("kiss/local_map", qos);
}

// Initialize the transform broadcaster
Expand Down

0 comments on commit 2e31175

Please sign in to comment.