Explorar o código

修改使编译通过

zx %!s(int64=4) %!d(string=hai) anos
pai
achega
158de0ac11

+ 3 - 4
CMakeLists.txt

@@ -16,9 +16,10 @@ include_directories(
         /usr/local/include
         ${PROTOBUF_INCLUDE_DIRS}
         ./message
-        ./nnxx
+        ./communication
         ./error_code
         ./tool
+        ./system
 #        ${PCL_INCLUDE_DIRS}
 #        ${OpenCV_INCLUDE_DIRS}
 #        ./laser
@@ -45,7 +46,6 @@ aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/system SYSTEM_SRC )
 add_executable(terminal
         main.cpp
         ./error_code/error_code.cpp
-        ./nnxx/nnxx_client.cpp
         setting.pb.cc
         ${locate_src}
         ${robot_src}
@@ -59,8 +59,7 @@ add_executable(terminal
         ${TOOL_SRC}
         ${COMMUNICATION_SRC}
         ${SYSTEM_SRC}
-
-        system/system_communication.cpp system/system_communication.h communication/communication_message.cpp communication/communication_message.h)
+        )
 
 target_link_libraries(terminal
         nnxx

+ 2 - 1
communication/communication_socket_base.h

@@ -16,7 +16,8 @@
 
 
 #include <nnxx/message>
-#include <nnxx/socket>
+#include <nnxx/socket.h>
+#include <nnxx/bus.h>
 
 #include <glog/logging.h>
 #include "../error_code/error_code.h"

+ 6 - 4
lidar_locate/Locate_communicator.cpp

@@ -22,7 +22,7 @@ Error_manager Locate_communicator::locate_request(message::Locate_request_msg re
      * 检查request合法性,以及模块状态
      */
 
-    std::string response_string;
+    /*std::string response_string;
     Error_manager code=m_nnxx_client.request(request.SerializeAsString(),response_string,timeout);
 
     if(code==SUCCESS)
@@ -54,12 +54,14 @@ Error_manager Locate_communicator::locate_request(message::Locate_request_msg re
     {
         //本模块功能失败的错误,向上抛出
         return code;
-    }
+    }*/
+
+    return SUCCESS;
 }
 
 Error_manager Locate_communicator::create_locate_communicator(std::string str_ip,int port)
 {
-    Error_manager code=SUCCESS;
+    /*Error_manager code=SUCCESS;
     if(mp_locate_communicator==NULL)
     {
         mp_locate_communicator=new Locate_communicator();
@@ -70,7 +72,7 @@ Error_manager Locate_communicator::create_locate_communicator(std::string str_ip
     } else
     {
         return code;
-    }
+    }*/
 
 }
 

+ 1 - 2
lidar_locate/Locate_communicator.h

@@ -6,7 +6,7 @@
 #define NNXX_TESTS_LOCATE_COMMUNICATOR_H
 
 #include <mutex>
-#include "nnxx_client.h"
+
 //#include "locate_message.pb.h"
 #include "../message/measure_message.pb.h"
 #include "../error_code/error_code.h"
@@ -19,7 +19,6 @@ public:
     static Locate_communicator* get_instance();
 protected:
     Locate_communicator();
-    Client          m_nnxx_client;
     static  Locate_communicator*  mp_locate_communicator;
 };