Skip to content

Commit

Permalink
Use topic remapping for gridmap topics
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeyoung-Lim committed Jan 18, 2024
1 parent 97af8cc commit 801fc59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion launch/load_multiple_tif_launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<param name="frame_id" value="dischma_valley"/>
<param name="tif_path" value="$(find-pkg-share grid_map_geo)/resources/dischma_valley.tif"/>
<param name="tif_color_path" value="$(find-pkg-share grid_map_geo)/resources/dischma_valley_color.tif"/>
<param name="topic_name" value="elevation2"/>
<remap from="elevation_map" to="second_elevation_map"/>
</node>


Expand Down
3 changes: 1 addition & 2 deletions src/test_tif_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ class MapPublisher : public rclcpp::Node {
std::string file_path = this->declare_parameter("tif_path", ".");
std::string color_path = this->declare_parameter("tif_color_path", ".");
std::string frame_id = this->declare_parameter("frame_id", "map");
std::string topic_name = this->declare_parameter("topic_name", "elevation_map");

original_map_pub_ = this->create_publisher<grid_map_msgs::msg::GridMap>(topic_name, 1);
original_map_pub_ = this->create_publisher<grid_map_msgs::msg::GridMap>("elevation_map", 1);

RCLCPP_INFO_STREAM(get_logger(), "file_path " << file_path);
RCLCPP_INFO_STREAM(get_logger(), "color_path " << color_path);
Expand Down

0 comments on commit 801fc59

Please sign in to comment.