We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781b63a commit b6c37aaCopy full SHA for b6c37aa
system/default_ad_api/src/routing.cpp
@@ -89,13 +89,15 @@ void RoutingNode::on_operation_mode(const OperationModeState::Message::ConstShar
89
90
void RoutingNode::on_state(const State::Message::ConstSharedPtr msg)
91
{
92
- state_ = *msg;
93
-
94
// TODO(Takagi, Isamu): Add adapi initializing state.
95
- if (State::Message::INITIALIZING) {
96
- pub_state_->publish(conversion::convert_state(*msg));
+ // Represent initializing state by not publishing the topic for now.
+ if (msg->state == State::Message::INITIALIZING) {
+ return;
97
}
98
+ state_ = *msg;
99
+ pub_state_->publish(conversion::convert_state(*msg));
100
+
101
// Change operation mode to stop when the vehicle arrives.
102
if (msg->state == State::Message::ARRIVED) {
103
change_stop_mode();
0 commit comments