Browse Source

change pilot_autoware_bridge, delete some debug output.

yuchuli 1 year ago
parent
commit
42ff8c8c23

+ 3 - 10
src/ros2/src/pilot_autoware_bridge/src/pilot_autoware_bridge_core.cpp

@@ -34,15 +34,10 @@
 
 #include <QString>
 
-//#include "modulecomm.h"
-
-
-
+//#include "modulecomm.h"   
 using namespace std;
 
 
-
-
 pilot_autoware_bridge::pilot_autoware_bridge() : Node("pilot_autoware_bridge")
 {
     QString str;
@@ -93,8 +88,6 @@ pilot_autoware_bridge::pilot_autoware_bridge() : Node("pilot_autoware_bridge")
     mptimer= create_wall_timer(100ms,std::bind(&pilot_autoware_bridge::callbackTimer, this));
     mptimerGPS = create_wall_timer(10ms,std::bind(&pilot_autoware_bridge::callbackTimerGPS, this));
 
-
-
     if(mbTestSim)
     {
         mptimerTestSim = create_wall_timer(10ms,std::bind(&pilot_autoware_bridge::callbackTimerTestSim,this));
@@ -377,7 +370,7 @@ void pilot_autoware_bridge::callbackTimerGPS()
 
 void pilot_autoware_bridge::callbackTimer()
 {
-    std::cout<<" testpose1. "<<std::endl;
+    std::cout<<std::chrono::system_clock::now().time_since_epoch().count()<<" testpose1. "<<std::endl;
 
 
     if(mbcmdupdate == true)
@@ -398,7 +391,7 @@ void pilot_autoware_bridge::callbackTimer()
         }
         else
         {
-            std::cout<<" cmd serialize fail."<<std::endl;
+            std::cout<<" command serialize fail."<<std::endl;
         }
         std::cout<<" stear: "<<steer<<" vel: "<<vel<<" accel: "<<accel<<std::endl;
         mbcmdupdate = false;