Skip to content

Commit

Permalink
feat(behavior velocity): lighten topic (autowarefoundation#1806)
Browse files Browse the repository at this point in the history
* feat(behavior velocity): lighten topic

Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp>

* chore: add queue size of virtual wall for visualization

Signed-off-by: taikitanaka3 <ttatcoder@outlook.jp>

Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp>
Signed-off-by: taikitanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 authored and boyali committed Oct 3, 2022
1 parent c1a2088 commit bf18da8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class SceneModuleManagerInterface
: clock_(node.get_clock()), logger_(node.get_logger())
{
const auto ns = std::string("~/debug/") + module_name;
pub_debug_ = node.create_publisher<visualization_msgs::msg::MarkerArray>(ns, 20);
pub_debug_ = node.create_publisher<visualization_msgs::msg::MarkerArray>(ns, 1);
if (!node.has_parameter("is_publish_debug_path")) {
is_publish_debug_path_ = node.declare_parameter("is_publish_debug_path", false);
} else {
Expand All @@ -147,12 +147,12 @@ class SceneModuleManagerInterface
std::string("~/debug/path_with_lane_id/") + module_name, 1);
}
pub_virtual_wall_ = node.create_publisher<visualization_msgs::msg::MarkerArray>(
std::string("~/virtual_wall/") + module_name, 20);
std::string("~/virtual_wall/") + module_name, 5);
pub_stop_reason_ =
node.create_publisher<tier4_planning_msgs::msg::StopReasonArray>("~/output/stop_reasons", 20);
node.create_publisher<tier4_planning_msgs::msg::StopReasonArray>("~/output/stop_reasons", 1);
pub_infrastructure_commands_ =
node.create_publisher<tier4_v2x_msgs::msg::InfrastructureCommandArray>(
"~/output/infrastructure_commands", 20);
"~/output/infrastructure_commands", 1);

processing_time_publisher_ = std::make_shared<DebugPublisher>(&node, "~/debug");
}
Expand Down
10 changes: 5 additions & 5 deletions planning/behavior_velocity_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,28 +119,28 @@ BehaviorVelocityPlannerNode::BehaviorVelocityPlannerNode(const rclcpp::NodeOptio
createSubscriptionOptions(this));
sub_traffic_signals_ =
this->create_subscription<autoware_auto_perception_msgs::msg::TrafficSignalArray>(
"~/input/traffic_signals", 10,
"~/input/traffic_signals", 1,
std::bind(&BehaviorVelocityPlannerNode::onTrafficSignals, this, _1),
createSubscriptionOptions(this));
sub_external_crosswalk_states_ = this->create_subscription<tier4_api_msgs::msg::CrosswalkStatus>(
"~/input/external_crosswalk_states", 10,
"~/input/external_crosswalk_states", 1,
std::bind(&BehaviorVelocityPlannerNode::onExternalCrosswalkStates, this, _1),
createSubscriptionOptions(this));
sub_external_intersection_states_ =
this->create_subscription<tier4_api_msgs::msg::IntersectionStatus>(
"~/input/external_intersection_states", 10,
"~/input/external_intersection_states", 1,
std::bind(&BehaviorVelocityPlannerNode::onExternalIntersectionStates, this, _1));
sub_external_velocity_limit_ = this->create_subscription<VelocityLimit>(
"~/input/external_velocity_limit_mps", rclcpp::QoS{1}.transient_local(),
std::bind(&BehaviorVelocityPlannerNode::onExternalVelocityLimit, this, _1));
sub_external_traffic_signals_ =
this->create_subscription<autoware_auto_perception_msgs::msg::TrafficSignalArray>(
"~/input/external_traffic_signals", 10,
"~/input/external_traffic_signals", 1,
std::bind(&BehaviorVelocityPlannerNode::onExternalTrafficSignals, this, _1),
createSubscriptionOptions(this));
sub_virtual_traffic_light_states_ =
this->create_subscription<tier4_v2x_msgs::msg::VirtualTrafficLightStateArray>(
"~/input/virtual_traffic_light_states", 10,
"~/input/virtual_traffic_light_states", 1,
std::bind(&BehaviorVelocityPlannerNode::onVirtualTrafficLightStates, this, _1),
createSubscriptionOptions(this));
sub_occupancy_grid_ = this->create_subscription<nav_msgs::msg::OccupancyGrid>(
Expand Down

0 comments on commit bf18da8

Please sign in to comment.