27#include "modules/common_msgs/external_command_msgs/command_status.pb.h"
28#include "modules/common_msgs/external_command_msgs/lane_follow_command.pb.h"
29#include "modules/common_msgs/external_command_msgs/valet_parking_command.pb.h"
30#include "modules/common_msgs/routing_msgs/routing.pb.h"
45namespace old_routing_adapter {
61 void OnRoutingRequest(
62 const std::shared_ptr<apollo::routing::RoutingRequest>& routing_request);
65 void CopyRoutingRequest(
66 const std::shared_ptr<routing::RoutingRequest>& routing_request,
67 int start_index,
int end_index, T* message);
72 double GetNearestHeading(
const std::string& lane_id,
double x,
75 std::shared_ptr<cyber::Reader<apollo::routing::RoutingRequest>>
76 routing_request_reader_;
82 lane_follow_command_client_;
87 valet_parking_command_client_;
93void OldRoutingAdapter::CopyRoutingRequest(
94 const std::shared_ptr<routing::RoutingRequest>& routing_request,
95 int start_index,
int end_index, T* message) {
96 if (routing_request->has_header()) {
97 message->mutable_header()->CopyFrom(routing_request->header());
99 message->set_command_id(++command_id_);
100 const auto& way_points = routing_request->waypoint();
101 for (
int i = start_index; i < end_index; ++i) {
102 Convert(way_points.Get(i), message->add_way_point());
Client get Response from a responding Service by sending a Request
High-precision map loader interface.
The external interface for processing external commands.
~OldRoutingAdapter()=default
#define CYBER_REGISTER_COMPONENT(name)