Skip to content

Commit

Permalink
update linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Mar 6, 2024
1 parent a8ed2d9 commit 02caa5e
Show file tree
Hide file tree
Showing 38 changed files with 34 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Skip json.hpp since it is copied directly from external repo
AutonomyLib/include/common/utils/json.hpp
AutonomySim/MavLinkCom/common_utils/json.hpp
AutonomySim/MavLinkCom/common/utils/json.hpp
mkdocs.yml
2 changes: 1 addition & 1 deletion AutonomyLib/include/common/AutonomySimSettings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "CommonStructs.hpp"
#include "ImageCaptureBase.hpp"
#include "Settings.hpp"
#include "common_utils/Utils.hpp"
#include "common/utils/Utils.hpp"
#include "sensors/SensorBase.hpp"
#include <exception>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion AutonomyLib/include/common/GaussianMarkov.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "UpdatableObject.hpp"
#include "common/Common.hpp"
#include "common_utils/RandomGenerator.hpp"
#include "common/utils/RandomGenerator.hpp"
#include <list>

namespace nervosys {
Expand Down
6 changes: 3 additions & 3 deletions AutonomyLib/include/common/Settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
#ifndef autonomylib_common_Settings_hpp
#define autonomylib_common_Settings_hpp

#include "common_utils/Utils.hpp"
#include "common/utils/Utils.hpp"

STRICT_MODE_OFF
// this json library is not strict clean
// TODO: HACK!! below are added temporariliy because something is defining min, max macros
// #undef max
#undef min
#include "common_utils/json.hpp"
#include "common/utils/json.hpp"
STRICT_MODE_ON

#include "common_utils/FileSystem.hpp"
#include "common/utils/FileSystem.hpp"
#include <mutex>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion AutonomyLib/include/common/StateReporterWrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "UpdatableObject.hpp"
#include "common/Common.hpp"
#include "common/FrequencyLimiter.hpp"
#include "common_utils/OnlineStats.hpp"
#include "common/utils/OnlineStats.hpp"
#include <iomanip>
#include <sstream>
#include <string>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion MavLinkCom/src/MavLinkLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#include "MavLinkLog.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include <chrono>

using namespace mavlinkcom;
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/MavLinkMessageBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ STRICT_MODE_ON

#include "MavLinkConnection.hpp"
#include "MavLinkMessageBase.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include <cmath>
#include <sstream>

Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/Semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#include "Semaphore.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"

using namespace mavlink_utils;

Expand Down
3 changes: 3 additions & 0 deletions MavLinkCom/src/UdpSocket.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include "UdpSocket.hpp"
#include "impl/UdpSocketImpl.hpp"

Expand Down
4 changes: 2 additions & 2 deletions MavLinkCom/src/impl/AdHocConnectionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "../serial_com/SerialPort.hpp"
#include "../serial_com/TcpClientPort.hpp"
#include "../serial_com/UdpClientPort.hpp"
#include "ThreadUtils.hpp"
#include "Utils.hpp"
#include "common/utils/ThreadUtils.hpp"
#include "common/utils/Utils.hpp"

using namespace mavlink_utils;
using namespace mavlinkcom_impl;
Expand Down
4 changes: 2 additions & 2 deletions MavLinkCom/src/impl/MavLinkConnectionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "../serial_com/TcpClientPort.hpp"
#include "../serial_com/UdpClientPort.hpp"
#include "MavLinkMessages.hpp"
#include "ThreadUtils.hpp"
#include "Utils.hpp"
#include "common/utils/ThreadUtils.hpp"
#include "common/utils/Utils.hpp"

using namespace mavlink_utils;
using namespace mavlinkcom_impl;
Expand Down
4 changes: 2 additions & 2 deletions MavLinkCom/src/impl/MavLinkFtpClientImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the MIT License.

#include "MavLinkFtpClientImpl.hpp"
#include "FileSystem.hpp"
#include "Utils.hpp"
#include "common/utils/FileSystem.hpp"
#include "common/utils/Utils.hpp"
#include <mutex>
#include <sys/stat.h>

Expand Down
4 changes: 2 additions & 2 deletions MavLinkCom/src/impl/MavLinkNodeImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "MavLinkNodeImpl.hpp"
#include "MavLinkMessages.hpp"
#include "Semaphore.hpp"
#include "ThreadUtils.hpp"
#include "Utils.hpp"
#include "common/utils/ThreadUtils.hpp"
#include "common/utils/Utils.hpp"

using namespace mavlink_utils;
using namespace mavlinkcom_impl;
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/impl/MavLinkVehicleImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../serial_com/SerialPort.hpp"
#include "../serial_com/UdpClientPort.hpp"
#include "MavLinkConnection.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include <cstring>
#include <exception>

Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/impl/MavLinkVehicleImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "MavLinkMessages.hpp"
#include "MavLinkNodeImpl.hpp"
#include "Utils.hpp"
#include "VehicleState.hpp"
#include "common/utils/Utils.hpp"

#include "../serial_com/Port.h"
#include "AsyncResult.hpp"
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/impl/MavLinkVideoStreamImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "MavLinkVideoStreamImpl.hpp"
#include "MavLinkMessages.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include <chrono>

#define PACKET_PAYLOAD 253 // hard coded in MavLink code - do not change
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/impl/UdpSocketImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define MavLinkCom_UdpSocketImpl_hpp

#include "UdpSocket.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#ifdef _WIN32
// windows
#ifndef WIN32_LEAN_AND_MEAN
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/impl/linux/MavLinkFindSerialPorts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#include "MavLinkConnection.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"

#include <codecvt>
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/serial_com/SerialPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "SerialPort.hpp"

#ifdef _WIN32
#include "Utils.hpp"
#include "Windows.h"
#include "common/utils/Utils.hpp"
#include <Wbemidl.h>
#include <comdef.h>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/serial_com/SerialPort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define SERIAL_COM_SERIALPORT_HPP

#include "Port.h"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include <memory>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/serial_com/SocketInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#include "SocketInit.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include <stdexcept>

#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/serial_com/TcpClientPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "TcpClientPort.hpp"
#include "SocketInit.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include "wifi.h"
#include <cstdio>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/serial_com/UdpClientPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "UdpClientPort.hpp"
#include "SocketInit.hpp"
#include "Utils.hpp"
#include "common/utils/Utils.hpp"
#include "wifi.h"
#include <cstdio>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion MavLinkCom/src/serial_com/wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#if defined(linux) | defined(__linux)

#include "common_utils/Utils.hpp"
#include "common/utils/Utils.hpp"
#include <linux/wireless.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions cmake/MavLinkCom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ include_directories(
${AUTONOMYSIM_ROOT}/MavLinkCom/include
)

list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/common_utils/FileSystem.cpp")
list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/common_utils/ThreadUtils.cpp")
list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/common/utils/FileSystem.cpp")
list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/common/utils/ThreadUtils.cpp")
list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/src/AdHocConnection.cpp")
list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/src/MavLinkConnection.cpp")
list(APPEND MAVLINK_SOURCES "${AUTONOMYSIM_ROOT}/MavLinkCom/src/MavLinkFtpClient.cpp")
Expand Down

0 comments on commit 02caa5e

Please sign in to comment.