删除了多余文件
This commit is contained in:
0
src/CMakeLists.txt
Normal file → Executable file
0
src/CMakeLists.txt
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm.cpp
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm.cpp
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm.h
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm.h
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm_Info.cpp
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm_Info.cpp
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm_Info.h
Normal file → Executable file
0
src/pBoardSupportComm/BoardSupportComm_Info.h
Normal file → Executable file
0
src/pBoardSupportComm/CMakeLists.txt
Normal file → Executable file
0
src/pBoardSupportComm/CMakeLists.txt
Normal file → Executable file
0
src/pBoardSupportComm/main.cpp
Normal file → Executable file
0
src/pBoardSupportComm/main.cpp
Normal file → Executable file
0
src/pBoardSupportComm/pBoardSupportComm.moos
Normal file → Executable file
0
src/pBoardSupportComm/pBoardSupportComm.moos
Normal file → Executable file
0
src/pClientViewer/Behavior.pb.h
Normal file → Executable file
0
src/pClientViewer/Behavior.pb.h
Normal file → Executable file
0
src/pClientViewer/CMakeLists.txt
Normal file → Executable file
0
src/pClientViewer/CMakeLists.txt
Normal file → Executable file
0
src/pClientViewer/ClientViewer.cpp
Normal file → Executable file
0
src/pClientViewer/ClientViewer.cpp
Normal file → Executable file
0
src/pClientViewer/ClientViewer.h
Normal file → Executable file
0
src/pClientViewer/ClientViewer.h
Normal file → Executable file
0
src/pClientViewer/ClientViewer_Info.cpp
Normal file → Executable file
0
src/pClientViewer/ClientViewer_Info.cpp
Normal file → Executable file
0
src/pClientViewer/ClientViewer_Info.h
Normal file → Executable file
0
src/pClientViewer/ClientViewer_Info.h
Normal file → Executable file
0
src/pClientViewer/main.cpp
Normal file → Executable file
0
src/pClientViewer/main.cpp
Normal file → Executable file
0
src/pClientViewer/pClientViewer.moos
Normal file → Executable file
0
src/pClientViewer/pClientViewer.moos
Normal file → Executable file
0
src/pDataManagement/CMakeLists.txt
Normal file → Executable file
0
src/pDataManagement/CMakeLists.txt
Normal file → Executable file
0
src/pDataManagement/DataManagement.cpp
Normal file → Executable file
0
src/pDataManagement/DataManagement.cpp
Normal file → Executable file
0
src/pDataManagement/DataManagement.h
Normal file → Executable file
0
src/pDataManagement/DataManagement.h
Normal file → Executable file
0
src/pDataManagement/DataManagement_Info.cpp
Normal file → Executable file
0
src/pDataManagement/DataManagement_Info.cpp
Normal file → Executable file
0
src/pDataManagement/DataManagement_Info.h
Normal file → Executable file
0
src/pDataManagement/DataManagement_Info.h
Normal file → Executable file
0
src/pDataManagement/main.cpp
Normal file → Executable file
0
src/pDataManagement/main.cpp
Normal file → Executable file
0
src/pDataManagement/pDataManagement.moos
Normal file → Executable file
0
src/pDataManagement/pDataManagement.moos
Normal file → Executable file
0
src/pEmulator/.LastOpenedMOOSLogDirectory
Normal file → Executable file
0
src/pEmulator/.LastOpenedMOOSLogDirectory
Normal file → Executable file
0
src/pEmulator/CMakeLists.txt
Normal file → Executable file
0
src/pEmulator/CMakeLists.txt
Normal file → Executable file
0
src/pEmulator/Emulator.cpp
Normal file → Executable file
0
src/pEmulator/Emulator.cpp
Normal file → Executable file
0
src/pEmulator/Emulator.hpp
Normal file → Executable file
0
src/pEmulator/Emulator.hpp
Normal file → Executable file
0
src/pEmulator/_150server.cpp
Normal file → Executable file
0
src/pEmulator/_150server.cpp
Normal file → Executable file
0
src/pEmulator/_150server.hpp
Normal file → Executable file
0
src/pEmulator/_150server.hpp
Normal file → Executable file
0
src/pEmulator/a.moos
Normal file → Executable file
0
src/pEmulator/a.moos
Normal file → Executable file
0
src/pEmulator/alpha.bhv
Normal file → Executable file
0
src/pEmulator/alpha.bhv
Normal file → Executable file
0
src/pEmulator/main.cpp
Normal file → Executable file
0
src/pEmulator/main.cpp
Normal file → Executable file
0
src/pEmulator/pEmulator.moos
Normal file → Executable file
0
src/pEmulator/pEmulator.moos
Normal file → Executable file
0
src/pFaultHandle/CMakeLists.txt
Normal file → Executable file
0
src/pFaultHandle/CMakeLists.txt
Normal file → Executable file
0
src/pFaultHandle/FaultHandle.cpp
Normal file → Executable file
0
src/pFaultHandle/FaultHandle.cpp
Normal file → Executable file
0
src/pFaultHandle/FaultHandle.h
Normal file → Executable file
0
src/pFaultHandle/FaultHandle.h
Normal file → Executable file
0
src/pFaultHandle/FaultHandle_Info.cpp
Normal file → Executable file
0
src/pFaultHandle/FaultHandle_Info.cpp
Normal file → Executable file
0
src/pFaultHandle/FaultHandle_Info.h
Normal file → Executable file
0
src/pFaultHandle/FaultHandle_Info.h
Normal file → Executable file
0
src/pFaultHandle/main.cpp
Normal file → Executable file
0
src/pFaultHandle/main.cpp
Normal file → Executable file
0
src/pFaultHandle/pFaultHandle.moos
Normal file → Executable file
0
src/pFaultHandle/pFaultHandle.moos
Normal file → Executable file
0
src/pMotionControler/CMakeLists.txt
Normal file → Executable file
0
src/pMotionControler/CMakeLists.txt
Normal file → Executable file
0
src/pMotionControler/ControlParam.json
Normal file → Executable file
0
src/pMotionControler/ControlParam.json
Normal file → Executable file
0
src/pMotionControler/Controler.cpp
Normal file → Executable file
0
src/pMotionControler/Controler.cpp
Normal file → Executable file
0
src/pMotionControler/Controler.hpp
Normal file → Executable file
0
src/pMotionControler/Controler.hpp
Normal file → Executable file
0
src/pMotionControler/MotionControler.cpp
Normal file → Executable file
0
src/pMotionControler/MotionControler.cpp
Normal file → Executable file
0
src/pMotionControler/MotionControler.hpp
Normal file → Executable file
0
src/pMotionControler/MotionControler.hpp
Normal file → Executable file
0
src/pMotionControler/a.moos
Normal file → Executable file
0
src/pMotionControler/a.moos
Normal file → Executable file
0
src/pMotionControler/alpha.bhv
Normal file → Executable file
0
src/pMotionControler/alpha.bhv
Normal file → Executable file
0
src/pMotionControler/alpha.moos
Normal file → Executable file
0
src/pMotionControler/alpha.moos
Normal file → Executable file
0
src/pMotionControler/main.cpp
Normal file → Executable file
0
src/pMotionControler/main.cpp
Normal file → Executable file
0
src/pMotionControler/pidControl.cpp
Normal file → Executable file
0
src/pMotionControler/pidControl.cpp
Normal file → Executable file
0
src/pMotionControler/pidControl.hpp
Normal file → Executable file
0
src/pMotionControler/pidControl.hpp
Normal file → Executable file
0
src/pMotionControler/simMat.moos
Normal file → Executable file
0
src/pMotionControler/simMat.moos
Normal file → Executable file
6
src/pStateManagement/CMakeLists.txt
Normal file → Executable file
6
src/pStateManagement/CMakeLists.txt
Normal file → Executable file
@@ -17,6 +17,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
#find_package (jsoncpp NO_MODULE REQUIRED)
|
||||
|
||||
find_package (GeographicLib REQUIRED)
|
||||
include_directories(${GeographicLib_INCLUDE_DIRS})
|
||||
|
||||
include_directories(/usr/include/jsoncpp/)
|
||||
link_directories(/usr/local/lib/)
|
||||
|
||||
@@ -26,7 +29,8 @@ TARGET_LINK_LIBRARIES(pStateManagement
|
||||
${MOOS_LIBRARIES}
|
||||
${CMAKE_DL_LIBS}
|
||||
${SYSTEM_LIBS}
|
||||
${DUNE_LIB}
|
||||
${DUNE_LIB}
|
||||
${GeographicLib_LIBRARIES}
|
||||
mbutil
|
||||
m
|
||||
pthread
|
||||
|
||||
9
src/pStateManagement/StateManagement.cpp
Normal file → Executable file
9
src/pStateManagement/StateManagement.cpp
Normal file → Executable file
@@ -9,6 +9,7 @@
|
||||
#include "MBUtils.h"
|
||||
#include "StateManagement.h"
|
||||
#include <json/json.h>
|
||||
#include <cmath>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -36,7 +37,6 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
|
||||
for(p=NewMail.begin(); p!=NewMail.end(); p++) {
|
||||
CMOOSMsg &msg = *p;
|
||||
|
||||
#if 1 // Keep these around just for template
|
||||
string key = msg.GetKey();
|
||||
string comm = msg.GetCommunity();
|
||||
double dval = msg.GetDouble();
|
||||
@@ -45,11 +45,10 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
|
||||
double mtime = msg.GetTime();
|
||||
bool mdbl = msg.IsDouble();
|
||||
bool mstr = msg.IsString();
|
||||
#endif
|
||||
|
||||
Json::Value deviceState;
|
||||
Json::Value deviceState;
|
||||
std::string manualState;
|
||||
double missionState;
|
||||
int missionState;
|
||||
|
||||
if(key == "uManual_enable_cmd")
|
||||
{
|
||||
@@ -84,7 +83,7 @@ bool StateManagement::OnNewMail(MOOSMSG_LIST &NewMail)
|
||||
{
|
||||
deviceState["opMode"] = opModeLists.service;
|
||||
}
|
||||
else if((missionState == 3) )
|
||||
if((missionState == 3) )
|
||||
{
|
||||
deviceState["opMode"] = opModeLists.maneuver;
|
||||
}
|
||||
|
||||
6
src/pStateManagement/StateManagement.h
Normal file → Executable file
6
src/pStateManagement/StateManagement.h
Normal file → Executable file
@@ -9,6 +9,12 @@
|
||||
#define StateManagement_HEADER
|
||||
|
||||
#include "MOOS/libMOOS/MOOSLib.h"
|
||||
#include "MOOS/libMOOS/Thirdparty/AppCasting/AppCastingMOOSApp.h"
|
||||
#include <DUNE/DUNE.hpp>
|
||||
#include <GeographicLib/LocalCartesian.hpp>
|
||||
#include <json/json.h>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
|
||||
class StateManagement : public CMOOSApp
|
||||
{
|
||||
|
||||
0
src/pStateManagement/StateManagement_Info.cpp
Normal file → Executable file
0
src/pStateManagement/StateManagement_Info.cpp
Normal file → Executable file
0
src/pStateManagement/StateManagement_Info.h
Normal file → Executable file
0
src/pStateManagement/StateManagement_Info.h
Normal file → Executable file
0
src/pStateManagement/main.cpp
Normal file → Executable file
0
src/pStateManagement/main.cpp
Normal file → Executable file
0
src/pStateManagement/pStateManagement.moos
Normal file → Executable file
0
src/pStateManagement/pStateManagement.moos
Normal file → Executable file
0
src/pSurfaceSupportComm/CMakeLists.txt
Normal file → Executable file
0
src/pSurfaceSupportComm/CMakeLists.txt
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicTCPEvent.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicTCPEvent.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicTCPEvent.h
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicTCPEvent.h
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicUDPEvent.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicUDPEvent.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicUDPEvent.h
Normal file → Executable file
0
src/pSurfaceSupportComm/PeriodicUDPEvent.h
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm.h
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm.h
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm_Info.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm_Info.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm_Info.h
Normal file → Executable file
0
src/pSurfaceSupportComm/SurfaceSupportComm_Info.h
Normal file → Executable file
0
src/pSurfaceSupportComm/main.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/main.cpp
Normal file → Executable file
0
src/pSurfaceSupportComm/pSurfaceSupportComm.moos
Normal file → Executable file
0
src/pSurfaceSupportComm/pSurfaceSupportComm.moos
Normal file → Executable file
0
src/pTaskManagement/CMakeLists.txt
Normal file → Executable file
0
src/pTaskManagement/CMakeLists.txt
Normal file → Executable file
0
src/pTaskManagement/TaskManger.cpp
Normal file → Executable file
0
src/pTaskManagement/TaskManger.cpp
Normal file → Executable file
0
src/pTaskManagement/TaskManger.h
Normal file → Executable file
0
src/pTaskManagement/TaskManger.h
Normal file → Executable file
0
src/pTaskManagement/TaskMangerMain.cpp
Normal file → Executable file
0
src/pTaskManagement/TaskMangerMain.cpp
Normal file → Executable file
0
src/pTaskManagement/pTaskManger.moos
Normal file → Executable file
0
src/pTaskManagement/pTaskManger.moos
Normal file → Executable file
0
src/pTaskSend/CMakeLists.txt
Normal file → Executable file
0
src/pTaskSend/CMakeLists.txt
Normal file → Executable file
0
src/pTaskSend/TaskSend.cpp
Normal file → Executable file
0
src/pTaskSend/TaskSend.cpp
Normal file → Executable file
0
src/pTaskSend/TaskSend.h
Normal file → Executable file
0
src/pTaskSend/TaskSend.h
Normal file → Executable file
0
src/pTaskSend/TaskSendMain.cpp
Normal file → Executable file
0
src/pTaskSend/TaskSendMain.cpp
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/query/client-vscode/query.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/query/client-vscode/query.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/cache-v2-d6d942c4138e4121aadf.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/cache-v2-d6d942c4138e4121aadf.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/cmakeFiles-v1-1b864ed9ef170e655086.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/cmakeFiles-v1-1b864ed9ef170e655086.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/codemodel-v2-8cafde00da2f94adfddf.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/codemodel-v2-8cafde00da2f94adfddf.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/index-2023-09-21T07-09-11-0928.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/index-2023-09-21T07-09-11-0928.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/target-pTaskSend-Debug-fe070126a6f1fe44e26b.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/target-pTaskSend-Debug-fe070126a6f1fe44e26b.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/toolchains-v1-2781238ec0fa0b9996f9.json
Normal file → Executable file
0
src/pTaskSend/build/.cmake/api/v1/reply/toolchains-v1-2781238ec0fa0b9996f9.json
Normal file → Executable file
0
src/pTaskSend/display.cpp
Normal file → Executable file
0
src/pTaskSend/display.cpp
Normal file → Executable file
0
src/pTaskSend/display.h
Normal file → Executable file
0
src/pTaskSend/display.h
Normal file → Executable file
0
src/pTaskSend/pTaskSend.moos
Normal file → Executable file
0
src/pTaskSend/pTaskSend.moos
Normal file → Executable file
Reference in New Issue
Block a user