|
@@ -3,8 +3,12 @@
|
|
#include "cyber/time/rate.h"
|
|
#include "cyber/time/rate.h"
|
|
#include "cyber/time/time.h"
|
|
#include "cyber/time/time.h"
|
|
|
|
|
|
|
|
+ #include "modules/common/adapters/adapter_gflags.h"
|
|
|
|
+
|
|
#include "modules/common_msgs/localization_msgs/gps.pb.h"
|
|
#include "modules/common_msgs/localization_msgs/gps.pb.h"
|
|
#include "modules/common_msgs/sensor_msgs/ins.pb.h"
|
|
#include "modules/common_msgs/sensor_msgs/ins.pb.h"
|
|
|
|
+
|
|
|
|
+#include "modules/common_msgs/localization_msgs/imu.pb.h"
|
|
|
|
|
|
//car数据定义的引用,可以看出其定义来源于一个proto
|
|
//car数据定义的引用,可以看出其定义来源于一个proto
|
|
// using apollo::communication::proto::Car;
|
|
// using apollo::communication::proto::Car;
|
|
@@ -214,7 +218,10 @@ void InitIns(){
|
|
(void)paraw;
|
|
(void)paraw;
|
|
|
|
|
|
std::shared_ptr<apollo::cyber::Writer<apollo::localization::Gps>>
|
|
std::shared_ptr<apollo::cyber::Writer<apollo::localization::Gps>>
|
|
- gps_writer_ = talker_node->CreateWriter<Gps>("gps");
|
|
|
|
|
|
+ gps_writer_ = talker_node->CreateWriter<Gps>("gps");
|
|
|
|
+
|
|
|
|
+ std::shared_ptr<apollo::cyber::Writer<InsStatus>> insstatus_writer_ = talker_node->CreateWriter<InsStatus>(FLAGS_ins_status_topic);
|
|
|
|
+ std::shared_ptr<apollo::cyber::Writer<apollo::localization::CorrectedImu>> corrimu_writer_ = talker_node->CreateWriter<apollo::localization::CorrectedImu>(FLAGS_imu_topic);
|
|
// 从节点创建一个Topic,来实现对车速的查看
|
|
// 从节点创建一个Topic,来实现对车速的查看
|
|
// auto talker = talker_node->CreateWriter<Car>("car_speed");
|
|
// auto talker = talker_node->CreateWriter<Car>("car_speed");
|
|
// AINFO << "I'll start telling you the current speed of the car.";
|
|
// AINFO << "I'll start telling you the current speed of the car.";
|