Skip to content

Commit

Permalink
add controlled vehicle route
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetnow committed Oct 27, 2024
1 parent a4bcbb6 commit 1606b56
Show file tree
Hide file tree
Showing 47 changed files with 1,967 additions and 819 deletions.
9 changes: 9 additions & 0 deletions city/person/v2/person_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ message SetControlledVehicleIDsRequest {
// 由外部控制行为的vehicle id列表
// List of vehicle ids controlled by external behavior
repeated int32 vehicle_ids = 1;
// 由外部控制车辆路由的vehicle id列表(在进入新的road后触发控制)
// List of vehicle ids controlled by external behavior (control is triggered after entering a new road)
repeated int32 route_vehicle_ids = 2;
}

// 设置由外部控制行为的vehicle响应
Expand All @@ -182,6 +185,9 @@ message FetchControlledVehicleEnvsResponse {
// 由外部控制行为的vehicle信息
// Information of vehicle controlled by external behavior
repeated VehicleEnv vehicle_envs = 1;
// 由外部控制车辆路由的vehicle信息
// Information of vehicle controlled by external behavior (control is triggered after entering a new road)
repeated VehicleEnv route_vehicle_envs = 2;
}

// 设置由外部控制行为的vehicle的行为请求
Expand All @@ -190,6 +196,9 @@ message SetControlledVehicleActionsRequest {
// 由外部控制行为的vehicle的行为
// Behavior of vehicle controlled by external behavior
repeated VehicleAction vehicle_actions = 1;
// 由外部控制车辆路由的vehicle的新路由
// New route of vehicle controlled by external behavior (control is triggered after entering a new road)
repeated VehicleRouteAction vehicle_journeys = 2;
}

// 设置由外部控制行为的vehicle的行为响应
Expand Down
11 changes: 11 additions & 0 deletions city/person/v2/vehicle.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ message VehicleAction {
double angle = 3;
}

// 修改车辆路由信息
// vehicle routing information modification
message VehicleRouteAction {
// 车辆编号
// vehicle id
int32 id = 1;
// 新的路径规划结果
// new routing result
city.routing.v2.Journey journey = 2;
}

message VehicleRuntime {
// 基本运行时信息
// basic runtime information
Expand Down
220 changes: 174 additions & 46 deletions cpp/city/person/v2/person_service.pb.cc

Large diffs are not rendered by default.

186 changes: 186 additions & 0 deletions cpp/city/person/v2/person_service.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1606b56

Please sign in to comment.