Skip to content

Commit

Permalink
refactor: Add namespace marker (#49)
Browse files Browse the repository at this point in the history
* refactor: modify class names

Signed-off-by: Masahiro Kubota <[email protected]>

* fix: modify the typo

Signed-off-by: Masahiro Kubota <[email protected]>

* refactor: add 'debug' namespace to marker topics

Signed-off-by: Masahiro Kubota <[email protected]>

---------

Signed-off-by: Masahiro Kubota <[email protected]>
  • Loading branch information
masahiro-kubota authored Jul 18, 2024
1 parent 6e26665 commit 6c7eac1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/autoware_practice_launch/config/autoware.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Visualization Manager:
Name: TrajectoryMarkers
Namespaces: {}
Topic:
Value: /trajectory_marker
Value: /debug/trajectory_marker
History Policy: Keep Last
Reliability Policy: Reliable
Qos Overrides:
Expand All @@ -104,7 +104,7 @@ Visualization Manager:
Name: TrajectoryMarkers
Namespaces: {}
Topic:
Value: /reference_trajectory_marker
Value: /debug/reference_trajectory_marker
History Policy: Keep Last
Reliability Policy: Reliable
Qos Overrides:
Expand All @@ -120,7 +120,7 @@ Visualization Manager:
Name: TrajectoryMarkers
Namespaces: {}
Topic:
Value: /candidate_trajectory_marker
Value: /debug/candidate_trajectory_marker
History Policy: Keep Last
Reliability Policy: Reliable
Qos Overrides:
Expand Down
8 changes: 4 additions & 4 deletions src/autoware_practice_visualization/src/marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ TrajectoryVisualizer::TrajectoryVisualizer(const rclcpp::NodeOptions & options)
"/planning/scenario_planning/costmap", 10,
std::bind(&TrajectoryVisualizer::costmapCallback, this, std::placeholders::_1));

marker_pub_ = this->create_publisher<visualization_msgs::msg::MarkerArray>("/trajectory_marker", 10);
marker_pub_ = this->create_publisher<visualization_msgs::msg::MarkerArray>("/debug/trajectory_marker", 10);
reference_marker_pub_ =
this->create_publisher<visualization_msgs::msg::MarkerArray>("/reference_trajectory_marker", 10);
this->create_publisher<visualization_msgs::msg::MarkerArray>("/debug/reference_trajectory_marker", 10);
candidate_marker_pub_ =
this->create_publisher<visualization_msgs::msg::MarkerArray>("/candidate_trajectory_marker", 10);
costmap_marker_pub_ = this->create_publisher<visualization_msgs::msg::MarkerArray>("/costmap_marker", 10);
this->create_publisher<visualization_msgs::msg::MarkerArray>("/debug/candidate_trajectory_marker", 10);
costmap_marker_pub_ = this->create_publisher<visualization_msgs::msg::MarkerArray>("/debug/costmap_marker", 10);
}

void TrajectoryVisualizer::trajectoryCallback(const autoware_auto_planning_msgs::msg::Trajectory::SharedPtr msg)
Expand Down

0 comments on commit 6c7eac1

Please sign in to comment.