Skip to content

Commit

Permalink
fix:修改红绿灯id
Browse files Browse the repository at this point in the history
  • Loading branch information
six9527 committed Dec 14, 2023
1 parent ec0db3b commit 2108c72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/data_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,13 @@ std::string data_process::get_string(){
}

void data_process::callback_heading(const Float32::SharedPtr msg){
// Float32 heading_msg;
// heading_msg.data = msg;
if (msg->data < 180){
traffic_signal_msg_.map_primitive_id = 123456;
traffic_signal_msg_.map_primitive_id = 11071;
//0 左转,1 直行,2 右转
Lanlet_id = 0;

}
else{
traffic_signal_msg_.map_primitive_id = 123457;
traffic_signal_msg_.map_primitive_id = 15666;
Lanlet_id = 1;
}
std::cout<<"test"<<std::endl;
Expand Down

0 comments on commit 2108c72

Please sign in to comment.