diff --git a/.github/workflows/workflows.yml b/.github/workflows/workflows.yml index d96384b3..ac59dfc2 100644 --- a/.github/workflows/workflows.yml +++ b/.github/workflows/workflows.yml @@ -9,6 +9,13 @@ on: branches: - master - develop + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Host tmate session on failure for debugging.' + required: false + default: false jobs: build-and-test: @@ -54,7 +61,7 @@ jobs: - name: Build Submodules run: ./scripts/setup_submodules.sh - + - name: Build run: | env > ~/temp_env_1 @@ -62,6 +69,13 @@ jobs: source $VEXU_HOME/install/setup.bash env > ~/temp_env_2 diff ~/temp_env_1 ~/temp_env_2 | sed '/^[^>]/d' | sed 's/> //'g | xargs -n1 echo >> $GITHUB_ENV - + - name: Test run: ./scripts/test_full.sh + + - name: Open TMate Session + if: ${{ failure() }} + # && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + uses: mxschmitt/action-tmate@v3 + with: + detached: true diff --git a/.gitmodules b/.gitmodules index 2106ef51..823f1e8f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,32 +1,49 @@ [submodule "01_Libraries/ghost_estimation/src/shared"] path = 01_Libraries/ghost_estimation/src/shared - url = git@github.com:MaxxWilson/amrl_shared_lib.git + url = git@github.com:VEXU-GHOST/amrl_shared_lib.git + [submodule "09_External/yaml-cpp"] path = 09_External/yaml-cpp - url = git@github.com:jbeder/yaml-cpp.git + url = git@github.com:VEXU-GHOST/yaml-cpp.git + [submodule "09_External/Casadi-Tutorial-CPP"] path = 09_External/Casadi-Tutorial-CPP - url = git@github.com:zehuilu/Tutorial-on-CasADi-with-CPP.git + url = git@github.com:VEXU-GHOST/Tutorial-on-CasADi-with-CPP.git + [submodule "09_External/casadi"] path = 09_External/casadi - url = https://github.com/casadi/casadi.git + url = git@github.com:VEXU-GHOST/casadi.git + [submodule "09_External/Ipopt"] path = 09_External/Ipopt - url = git@github.com:MaxxWilson/Ipopt.git + url = git@github.com:VEXU-GHOST/Ipopt.git + [submodule "09_External/rplidar_ros"] path = 09_External/rplidar_ros - url = git@github.com:Slamtec/rplidar_ros.git + url = git@github.com:VEXU-GHOST/rplidar_ros.git branch = ros2 + [submodule "09_External/matplotlib-cpp"] path = 09_External/matplotlib-cpp - url = git@github.com:MaxxWilson/matplotlib-cpp.git + url = git@github.com:VEXU-GHOST/matplotlib-cpp.git + [submodule "09_External/ThirdParty-Mumps"] path = 09_External/ThirdParty-Mumps - url = git@github.com:MaxxWilson/ThirdParty-Mumps.git + url = git@github.com:VEXU-GHOST/ThirdParty-Mumps.git branch = with-src + [submodule "09_External/BehaviorTree.CPP"] path = 09_External/BehaviorTree.CPP - url = git@github.com:BehaviorTree/BehaviorTree.CPP.git + url = git@github.com:VEXU-GHOST/BehaviorTree.CPP.git + [submodule "09_External/BehaviorTree.ROS2"] path = 09_External/BehaviorTree.ROS2 - url = https://github.com/JakeWendling/BehaviorTree.ROS2 + url = git@github.com:VEXU-GHOST/BehaviorTree.ROS2.git + +[submodule "09_External/plotjuggler"] + path = 09_External/plotjuggler + url = git@github.com:VEXU-GHOST/PlotJuggler.git + +[submodule "09_External/plotjuggler-ros-plugins"] + path = 09_External/plotjuggler-ros-plugins + url = git@github.com:VEXU-GHOST/plotjuggler-ros-plugins.git diff --git a/03_ROS/ghost_viz/CMakeLists.txt b/03_ROS/ghost_viz/CMakeLists.txt new file mode 100644 index 00000000..a6a4a8dc --- /dev/null +++ b/03_ROS/ghost_viz/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.8) +project(ghost_viz) + +# Add Global CMake Config for Ghost Packages +set(Ghost_DIR "$ENV{VEXU_HOME}/cmake") +find_package(Ghost CONFIG REQUIRED) + +# Adds all our package dependencies to one list +set(DEPENDENCIES + ament_cmake + ) + +# Iterates through the list and finds the packages! +foreach(pkg ${DEPENDENCIES}) + find_package(${pkg} REQUIRED) +endforeach() + +# Tell any packages that depend on us what dependencies we need. +ament_export_dependencies(${DEPENDENCIES}) + +install(DIRECTORY + config + launch + DESTINATION share/${PROJECT_NAME}) + +# This generates the ROS2 package and should always be the last line. +ament_package() diff --git a/03_ROS/ghost_viz/config/plotjuggler_config.xml b/03_ROS/ghost_viz/config/plotjuggler_config.xml new file mode 100644 index 00000000..ce3cf6b1 --- /dev/null +++ b/03_ROS/ghost_viz/config/plotjuggler_config.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +