Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 20 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -44,3 +44,22 @@ jobs:
mkdir -p build && cd build
cmake ..
make -j4

# For Windows, build using MSVC and vcpkg or choco for dependencies
- name: Install dependencies on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
choco install eigen -y
# Dependencies for matplotplusplus
choco install gnuplot -y

- name: Build on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
mkdir -Force build
cd build
cmake ..
cmake --build . --config Release
1 change: 1 addition & 0 deletions include/cddp-cpp/cddp_core/constraint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <Eigen/Dense>
#include <algorithm>
#define _USE_MATH_DEFINES
#include <cmath> // For std::acos, std::sqrt, std::max, M_PI
#include <iostream>
#include <limits>
Expand Down
4 changes: 3 additions & 1 deletion include/cddp-cpp/dynamics_model/manipulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#define CDDP_MANIPULATOR_HPP

#include "cddp_core/dynamical_system.hpp"
#define _USE_MATH_DEFINES
#include <cmath>
#include <Eigen/Dense>

namespace cddp {
Expand Down Expand Up @@ -218,4 +220,4 @@ class Manipulator : public DynamicalSystem {

} // namespace cddp

#endif // CDDP_MANIPULATOR_HPP
#endif // CDDP_MANIPULATOR_HPP
Loading