Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental Merge of A* Testing Branch | New Graphing Utility! #365

Merged
merged 24 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1f65917
Enable SIM mode.
ClayJay3 Jan 7, 2025
e3960be
Add matplotlib-cpp to project.
ClayJay3 Jan 7, 2025
7588235
Testing plotting.
ClayJay3 Jan 7, 2025
58575dc
My lord matplotlib-cpp sucks ass.
ClayJay3 Jan 7, 2025
a44a9a2
Remove matplotlib-cpp from the project because it's a joke.
ClayJay3 Jan 7, 2025
bb65ab5
Work on adding new package to the project.
ClayJay3 Jan 8, 2025
525d80b
Super cool graphs and plots.
ClayJay3 Jan 9, 2025
2deb458
Add graphing to navigating.
ClayJay3 Jan 9, 2025
d90a103
Final touches on the path tracer.
ClayJay3 Jan 9, 2025
a22ff00
Cleanup A* and Stanley.
ClayJay3 Jan 9, 2025
28f1afa
Clean up PathTracer.
ClayJay3 Jan 9, 2025
d02c301
Write predictive stanley controller based off a research paper.
ClayJay3 Jan 25, 2025
7061c71
Fix workspace trust issues, and make it so that if an X display isn't…
ClayJay3 Jan 27, 2025
236d1dd
Merge remote-tracking branch 'origin/development' into topic/astar-te…
ClayJay3 Jan 27, 2025
72e6c0b
Add scatter plots to the path tracer. Also add copilot vscode extension.
ClayJay3 Jan 28, 2025
e16fef8
Update gitignore.
ClayJay3 Jan 29, 2025
0119853
Move whitepapers.
ClayJay3 Jan 29, 2025
cfe1ea8
Remove unneeded package, and add matplot++ package to the docker buil…
ClayJay3 Jan 29, 2025
e3ffa86
Final PR changes.
ClayJay3 Jan 29, 2025
401c6be
Merge remote-tracking branch 'origin/development' into topic/astar-te…
ClayJay3 Feb 10, 2025
d65a5aa
Add new checks and options to matplotlib package build scripts.
ClayJay3 Feb 10, 2025
b2f8b81
Merge branch 'development' into topic/astar-testing
ClayJay3 Feb 10, 2025
3e0a9fa
Write some tests.
ClayJay3 Feb 11, 2025
97c3365
Write some more tests.
ClayJay3 Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions .devcontainer/Jammy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y iputils-ping \
yasm libatlas-base-dev gfortran libpq-dev libpostproc-dev \
libxine2-dev libglew-dev libtiff5-dev zlib1g-dev cowsay lolcat locales usbutils \
libeigen3-dev python3-dev python3-pip python3-numpy libx11-dev xauth libssl-dev \
valgrind doxygen graphviz htop nano fortune fortunes \
valgrind doxygen graphviz htop nano fortune fortunes gnuplot-nox \
vim-common gasket-dkms nlohmann-json3-dev gcovr lcov curl \
libaom-dev libass-dev libfdk-aac-dev libdav1d-dev libmp3lame-dev \
libopus-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev
Expand Down Expand Up @@ -105,6 +105,18 @@ RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/pytorch/a
dpkg -i pytorch_${TORCH_VERSION}_amd64.deb && \
rm pytorch_${TORCH_VERSION}_amd64.deb

# Install Tensorflow.
ARG TENSORFLOW_VERSION="2.15.0"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/tensorflow/amd64/tensorflow_${TENSORFLOW_VERSION}_amd64.deb && \
dpkg -i tensorflow_${TENSORFLOW_VERSION}_amd64.deb && \
rm tensorflow_${TENSORFLOW_VERSION}_amd64.deb

# Install FFMPEG
ARG FFMPEG_VERSION="7.1"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/ffmpeg/amd64/ffmpeg_${FFMPEG_VERSION}_amd64.deb && \
dpkg -i ffmpeg_${FFMPEG_VERSION}_amd64.deb && \
rm ffmpeg_${FFMPEG_VERSION}_amd64.deb

# Install Abseil.
ARG ABSEIL_VERSION="20230802.1"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/abseil/amd64/abseil_${ABSEIL_VERSION}_amd64.deb && \
Expand All @@ -117,23 +129,17 @@ RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/geolib/am
dpkg -i geolib_${GEOLIB_VERSION}_amd64.deb && \
rm geolib_${GEOLIB_VERSION}_amd64.deb

# Install FFMPEG
ARG FFMPEG_VERSION="7.1"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/ffmpeg/amd64/ffmpeg_${FFMPEG_VERSION}_amd64.deb && \
dpkg -i ffmpeg_${FFMPEG_VERSION}_amd64.deb && \
rm ffmpeg_${FFMPEG_VERSION}_amd64.deb

# Install Libdatachannel
ARG LIBDATACHANNEL_VERSION="0.22"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/libdatachannel/amd64/libdatachannel_${LIBDATACHANNEL_VERSION}_amd64.deb && \
dpkg -i libdatachannel_${LIBDATACHANNEL_VERSION}_amd64.deb && \
rm libdatachannel_${LIBDATACHANNEL_VERSION}_amd64.deb

# Install Tensorflow.
ARG TENSORFLOW_VERSION="2.15.0"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/tensorflow/amd64/tensorflow_${TENSORFLOW_VERSION}_amd64.deb && \
dpkg -i tensorflow_${TENSORFLOW_VERSION}_amd64.deb && \
rm tensorflow_${TENSORFLOW_VERSION}_amd64.deb
# Install MatPlotPlusPlus
ARG MATPLOTPLUSPLUS_VERSION="master"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/matplotplusplus/amd64/matplotplusplus_${MATPLOTPLUSPLUS_VERSION}_amd64.deb && \
dpkg -i matplotplusplus_${MATPLOTPLUSPLUS_VERSION}_amd64.deb && \
rm matplotplusplus_${MATPLOTPLUSPLUS_VERSION}_amd64.deb

# Install Quill
ARG QUILL_VERSION="8.1.0"
Expand Down
30 changes: 18 additions & 12 deletions .devcontainer/JetPack.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libeigen3-dev libglew-dev libgstreamer-plugins-base1.0-dev udev net-tools libssl-dev \
libgstreamer-plugins-good1.0-dev libgstreamer1.0-dev libgtk-3-dev libjpeg-dev sudo usbutils \
libjpeg8-dev libjpeg-turbo8-dev liblapack-dev liblapacke-dev libopenblas-dev libpng-dev tzdata \
libpostproc-dev libtbb-dev libtbb2 libtesseract-dev libtiff-dev libv4l-dev \
libpostproc-dev libtbb-dev libtbb2 libtesseract-dev libtiff-dev libv4l-dev gnuplot-nox \
libxine2-dev libxvidcore-dev libx264-dev libgtkglext1 libgtkglext1-dev pkg-config qv4l2 \
v4l-utils zlib1g-dev python3-dev libboost-all-dev valgrind doxygen graphviz nano \
vim-common libedgetpu1-std gasket-dkms ca-certificates nlohmann-json3-dev curl \
Expand Down Expand Up @@ -100,6 +100,18 @@ RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/pytorch/a
dpkg -i pytorch_${TORCH_VERSION}_arm64.deb && \
rm pytorch_${TORCH_VERSION}_arm64.deb

# Install Tensorflow.
ARG TENSORFLOW_VERSION="2.15.0"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/tensorflow/arm64/tensorflow_${TENSORFLOW_VERSION}_arm64.deb && \
dpkg -i tensorflow_${TENSORFLOW_VERSION}_arm64.deb && \
rm tensorflow_${TENSORFLOW_VERSION}_arm64.deb

# Install FFMPEG
ARG FFMPEG_VERSION="7.1"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/ffmpeg/arm64/ffmpeg_${FFMPEG_VERSION}_arm64.deb && \
dpkg -i ffmpeg_${FFMPEG_VERSION}_arm64.deb && \
rm ffmpeg_${FFMPEG_VERSION}_arm64.deb

# Install Abseil.
ARG ABSEIL_VERSION="20230802.1"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/abseil/arm64/abseil_${ABSEIL_VERSION}_arm64.deb && \
Expand All @@ -112,23 +124,17 @@ RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/geolib/ar
dpkg -i geolib_${GEOLIB_VERSION}_arm64.deb && \
rm geolib_${GEOLIB_VERSION}_arm64.deb

# Install FFMPEG
ARG FFMPEG_VERSION="7.1"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/ffmpeg/arm64/ffmpeg_${FFMPEG_VERSION}_arm64.deb && \
dpkg -i ffmpeg_${FFMPEG_VERSION}_arm64.deb && \
rm ffmpeg_${FFMPEG_VERSION}_arm64.deb

# Install Libdatachannel
ARG LIBDATACHANNEL_VERSION="0.22"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/libdatachannel/arm64/libdatachannel_${LIBDATACHANNEL_VERSION}_arm64.deb && \
dpkg -i libdatachannel_${LIBDATACHANNEL_VERSION}_arm64.deb && \
rm libdatachannel_${LIBDATACHANNEL_VERSION}_arm64.deb

# Install Tensorflow.
ARG TENSORFLOW_VERSION="2.15.0"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/tensorflow/arm64/tensorflow_${TENSORFLOW_VERSION}_arm64.deb && \
dpkg -i tensorflow_${TENSORFLOW_VERSION}_arm64.deb && \
rm tensorflow_${TENSORFLOW_VERSION}_arm64.deb
# Install MatPlotPlusPlus
ARG MATPLOTPLUSPLUS_VERSION="master"
RUN wget -q https://github.com/MissouriMRDT/Autonomy_Packages/raw/main/matplotplusplus/arm64/matplotplusplus_${MATPLOTPLUSPLUS_VERSION}_arm64.deb && \
dpkg -i matplotplusplus_${MATPLOTPLUSPLUS_VERSION}_arm64.deb && \
rm matplotplusplus_${MATPLOTPLUSPLUS_VERSION}_arm64.deb

# Install Quill
ARG QUILL_VERSION="8.1.0"
Expand Down
37 changes: 21 additions & 16 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
"--privileged",
"-v",
"/dev/bus/usb:/dev/bus/usb",
// X11 socket for XWayland
"-v",
"/tmp/.X11-unix:/tmp/.X11-unix",
// Wayland socket for native Wayland apps
"-v",
"/run/user/1000/wayland:/run/user/1000/wayland",
// WSLg support (if on WSL)
"-v",
"/mnt/wslg:/mnt/wslg",
// X11 socket for XWayland
"-v",
"/tmp/.X11-unix:/tmp/.X11-unix",
// // Wayland socket for native Wayland apps
// "-v",
// "/run/user/1000/wayland:/run/user/1000/wayland",
// Environment variables
"-e",
"DISPLAY", // XWayland display
"-e",
"WAYLAND_DISPLAY", // Wayland display, you may need to run 'xhost +local:docker' to allow the container to connect to the X server.
"-e",
"XDG_RUNTIME_DIR", // Runtime directory for Wayland
// "-e",
// "DISPLAY", // XWayland display
// "-e",
// "WAYLAND_DISPLAY", // Wayland display, you may need to run 'xhost +local:docker' to allow the container to connect to the X server.
// "-e",
// "XDG_RUNTIME_DIR", // Runtime directory for Wayland
"-e",
"GDK_BACKEND=x11,wayland" // Allow GTK to work with both backends
],
Expand All @@ -40,8 +40,8 @@
"source=${localWorkspaceFolder}/data/calibrations/zed,target=/usr/local/zed/settings,type=bind,consistency=delegated",
"type=bind,readonly,source=/etc/localtime,target=/etc/localtime"
],
"image": "ghcr.io/missourimrdt/autonomy-jammy:2025-02-08-23-48-34",
// "image": "ghcr.io/missourimrdt/autonomy-jetpack:2025-02-08-23-48-34",
"image": "ghcr.io/missourimrdt/autonomy-jammy:2025-02-10-18-03-17",
// "image": "ghcr.io/missourimrdt/autonomy-jetpack:2025-02-10-18-03-17",
// "build": {
// "dockerfile": "Jammy.dockerfile"
// "dockerfile": "JetPack.dockerfile"
Expand Down Expand Up @@ -72,7 +72,8 @@
"streetsidesoftware.code-spell-checker",
"vscode-icons-team.vscode-icons",
"ryanluker.vscode-coverage-gutters",
"GitHub.vscode-pull-request-github"
"GitHub.vscode-pull-request-github",
"GitHub.copilot"
],
"settings": {
// VSCode settings.
Expand Down Expand Up @@ -127,6 +128,8 @@
"/usr/local/include/libavfilter/**",
"/usr/local/include/libavdevice",
"/usr/local/include/libavdevice/**",
"/usr/local/include/matplot",
"/usr/local/include/matplot/**",
"/usr/local/include/gmock",
"/usr/local/include/gmock/**",
"/usr/local/include/gtest",
Expand All @@ -140,7 +143,9 @@
"/usr/include/torch",
"/usr/include/torch/**",
"/usr/include/nlohmann",
"/usr/include/nlohmann/**"
"/usr/include/nlohmann/**",
"/usr/include/python*",
"/usr/include/python*/**"
],
"C_Cpp.default.defines": [
"__ROVECOMM_LIBRARY_MODE__=1"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/deploy_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
outputs:
geolib-amd64: ${{ steps.changes.outputs.geolib-amd64 }}
libdatachannel-amd64: ${{ steps.changes.outputs.libdatachannel-amd64 }}
matplotplusplus-amd64: ${{ steps.changes.outputs.matplotplusplus-amd64 }}
ffmpeg-amd64: ${{ steps.changes.outputs.ffmpeg-amd64 }}
gtest-amd64: ${{ steps.changes.outputs.gtest-amd64 }}
opencv-amd64: ${{ steps.changes.outputs.opencv-amd64 }}
Expand Down Expand Up @@ -104,6 +105,8 @@ jobs:
- 'tools/package-builders/geolib/geolib-amd64-pkg.sh'
libdatachannel-amd64:
- 'tools/package-builders/libdatachannel/libdatachannel-amd64-pkg.sh'
matplotplusplus-amd64:
- 'tools/package-builders/matplotplusplus/matplotplusplus-amd64-pkg.sh'
ffmpeg-amd64:
- 'tools/package-builders/ffmpeg/ffmpeg-amd64-pkg.sh'
gtest-amd64:
Expand Down Expand Up @@ -153,6 +156,7 @@ jobs:
package:
- geolib
- libdatachannel
- matplotplusplus
- gtest
- pytorch
- abseil
Expand Down Expand Up @@ -385,6 +389,7 @@ jobs:
outputs:
geolib-arm64: ${{ steps.changes.outputs.geolib-arm64 }}
libdatachannel-arm64: ${{ steps.changes.outputs.libdatachannel-arm64 }}
matplotplusplus-arm64: ${{ steps.changes.outputs.matplotplusplus-arm64 }}
ffmpeg-arm64: ${{ steps.changes.outputs.ffmpeg-arm64 }}
gtest-arm64: ${{ steps.changes.outputs.gtest-arm64 }}
opencv-arm64: ${{ steps.changes.outputs.opencv-arm64 }}
Expand Down Expand Up @@ -420,6 +425,8 @@ jobs:
- 'tools/package-builders/geolib/geolib-arm64-pkg.sh'
libdatachannel-arm64:
- 'tools/package-builders/libdatachannel/libdatachannel-arm64-pkg.sh'
matplotplusplus-arm64:
- 'tools/package-builders/matplotplusplus/matplotplusplus-arm64-pkg.sh'
ffmpeg-arm64:
- 'tools/package-builders/ffmpeg/ffmpeg-arm64-pkg.sh'
gtest-arm64:
Expand Down Expand Up @@ -468,6 +475,7 @@ jobs:
package:
- geolib
- libdatachannel
- matplotplusplus
- gtest
- pytorch
- abseil
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ docs/*
!docs/Doxygen
docs/Doxygen/*
!docs/Doxygen/resources
# Also don't ignore the docs/Whitepapers directory.
!docs/WhitePapers

# Data. Ignore optimized models, but push base model.
data/models/zed/.*
Expand Down
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ include_directories(external/rovecomm/src)
add_subdirectory(external/rovecomm)
add_compile_definitions(__ROVECOMM_LIBRARY_MODE__=1)

## Find Python3
find_package(Python3 COMPONENTS Development NumPy REQUIRED)

## Determine if shared or static libraries will be used.
if (NOT LINK_SHARED_ZED AND MSVC)
message(FATAL_ERROR "LINK_SHARED_ZED OFF : ZED SDK static libraries not available on Windows")
Expand Down Expand Up @@ -184,6 +187,9 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET libavcodec libavformat libavutil libswscale libswresample libavdevice libavfilter libpostproc SvtAv1Enc)
include_directories(${FFMPEG_INCLUDE_DIRS})

## Find MatPlotPlusPlus
find_package(Matplot++ REQUIRED)

## Find Google Test
find_package(GTest CONFIG REQUIRED)
include(GoogleTest)
Expand Down Expand Up @@ -290,11 +296,13 @@ set(AUTONOMY_LIBRARIES Threads::Threads
OpenMP::OpenMP_CXX
Eigen3::Eigen
RoveComm_CPP
Python3::Python
quill::quill
${OPENSSL_LIBRARIES}
PkgConfig::FFMPEG
LibDataChannel::LibDataChannel
nlohmann_json::nlohmann_json
Matplot++::matplot
${OpenCV_LIBS}
${GeographicLib_LIBRARIES}
${ZED_LIBS}
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ External libraries and their corresponding type prefixes are listed below:
| WebRTC | `rtc` | `rtc::PeerConnection rtcExampleRTCType` |
| JSON | `jsn` | `nlohmann::json jsnExampleJSONType` |
| FFMPEG | `av` | `AVPacket avExampleFFMPEGPacket` |
| Matplot | `mt` | `axes_handle mtExampleMatplot` |

---

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ This project makes use of several open-source libraries and tools that help us a
[nlohmann JSON GitHub](https://github.com/nlohmann/json)
License: [MIT License](https://github.com/nlohmann/json/blob/develop/LICENSE.MIT)

- **matplotplusplus** - Matplot++: A C++ Graphics Library for Data Visualization
[Matplot++](https://github.com/alandefreitas/matplotplusplus)
License: [MIT License](https://github.com/alandefreitas/matplotplusplus/blob/master/LICENSE)

- **Abseil** - Collection of C++ libraries designed for performance and ease of use.
[Abseil GitHub](https://github.com/abseil/abseil-cpp)
License: [Apache License 2.0](https://github.com/abseil/abseil-cpp/blob/master/LICENSE)
Expand Down
7 changes: 7 additions & 0 deletions data/Custom_Dictionaries/Autonomy-Dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ADDMARKERLEG
ADDOBJECTLEG
ADDOBSTACLE
ADDPOSITIONLEG
alandefreitas
algobase
alloc
allocs
Expand Down Expand Up @@ -369,7 +370,10 @@ MAKEFLAGS
MAPANGLE
MAPRANGE
marsrover
MATPLOT
matplotlib
matplotlibcpp
matplotplusplus
matx
Memcheck
MERICA
Expand Down Expand Up @@ -542,10 +546,12 @@ Wpedantic
wslg
xauth
xhost
xlabel
XNNPACK
XYZBGRA
XYZRGBA
yasm
ylabel
YOLO
yolomodel
YUVJ
Expand All @@ -554,4 +560,5 @@ Zain
ZEDCAM
ZEDCAMERA
ZEDSDK
zlabel
zstd
Binary file not shown.
Binary file not shown.
13 changes: 8 additions & 5 deletions src/AutonomyConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ namespace constants
#else
const bool MODE_SIM = false; // REG MODE ENABLED: Toggle RoveComm and Cameras to use standard configuration.
#endif
const std::string SIM_IP_ADDRESS = "192.168.69.29"; // The IP address to use for simulation mode.
const std::string SIM_IP_ADDRESS = "192.168.2.118"; // The IP address to use for simulation mode.
const uint SIM_WEBSOCKET_PORT = 8080; // The port to use for the WebSocket in simulation mode.
const uint SIM_WEBRTC_QP = 25; // The QP value to use for WebRTC in simulation mode. 0-51, 0 is lossless. If too high for network, frames drop.

// Safety constants.
Expand Down Expand Up @@ -350,13 +351,15 @@ namespace constants
///////////////////////////////////////////////////////////////////////////

// Stanley Controller config.
const double STANLEY_STEER_CONTROL_GAIN = 0.5; // Determines how reactive the rover is to yaw adjustments.
const double STANLEY_DIST_TO_FRONT_AXLE = 2.9; // Distance from position sensor to the center of the front axle.
const double STANLEY_YAW_TOLERANCE = 1.0; // Threshold for limiting unnecessary small movements.
const double STANLEY_CROSSTRACK_CONTROL_GAIN = 2.0; // Determines how reactive the rover is to crosstrack error adjustments. This is in degrees scale to the error.
const double STANLEY_DIST_TO_FRONT_AXLE = 1.0; // Distance from position sensor to the center of the front axle in meters.
const double STANLEY_STEERING_ANGLE_LIMIT = 100.0; // The maximum steering angle in degrees.
const int STANLEY_PREDICTION_HORIZON = 5; // The number of predictions to make.
const double STANLEY_PREDICTION_TIME_STEP = 0.5; // The time to pass in seconds between each prediction of the Stanley controller bicycle model.

// ASTAR config.
const double ASTAR_AVOIDANCE_MULTIPLIER = 1.2; // Multiplier for marking extra nodes around objects as obstacles
const double ASTAR_MAXIMUM_SEARCH_GRID = 10.0; // Maximum search grid size (UTM)
const double ASTAR_MAXIMUM_SEARCH_GRID = 1000.0; // Maximum search grid size (UTM)
const double ASTAR_NODE_SIZE = 0.5; // Represents the node size / accuracy in meters
const double ASTAR_SQRT_NODE_SIZE = M_SQRT1_2; // Square root of m_dNodeSize

Expand Down
5 changes: 5 additions & 0 deletions src/AutonomyLogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
******************************************************************************/

#include "AutonomyLogging.h"
#include "./util/logging/PlotsAndGraphs.hpp"
#include "AutonomyNetworking.h"

/// \cond
Expand Down Expand Up @@ -44,6 +45,7 @@ namespace logging
quill::LogLevel g_eRoveCommLogLevel;

std::string g_szProgramStartTimeString;
std::string g_szLoggingOutputPath;

/******************************************************************************
* @brief Logger Initializer - Sets Up all the logging handlers required for
Expand All @@ -67,6 +69,9 @@ namespace logging
szFilePath += g_szProgramStartTimeString + "/"; // Folder for each program run.
szFilename = "console_output"; // Base file name.

// Store the logging output path.
g_szLoggingOutputPath = szFilePath;

// Check if directory exists.
if (!std::filesystem::exists(szFilePath))
{
Expand Down
Loading