Skip to content

Commit

Permalink
Update to latest TrajoptLib and casadi, re-increase sample count mult…
Browse files Browse the repository at this point in the history
…iplier to 1.25
  • Loading branch information
camearle20 committed Apr 12, 2024
1 parent 8c5489c commit 4afa6e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion trajectory_native/build_casadi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apk add --update clang make cmake blas-dev lapack-dev tinyxml2-dev

CC=clang
CXX=clang++
CASADI_VERSION="3.6.4"
CASADI_VERSION="3.6.5"

wget -c https://github.com/casadi/casadi/archive/refs/tags/$CASADI_VERSION.tar.gz -O - | tar -xz
mkdir casadi-$CASADI_VERSION/build
Expand Down
2 changes: 1 addition & 1 deletion trajectory_native/build_trajoptlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apk add --update clang make cmake git

CC=clang
CXX=clang++
TRAJOPT_COMMIT=f6cf3d42359f6f41f311f848a4e7f51c3f88c2ca
TRAJOPT_COMMIT=fee4a12f90abcf96d2c09a6ef737cd29b8b706d3

wget -c https://github.com/SleipnirGroup/TrajoptLib/archive/$TRAJOPT_COMMIT.tar.gz -O - | tar -xz
mkdir TrajoptLib-$TRAJOPT_COMMIT/build
Expand Down
2 changes: 1 addition & 1 deletion trajectory_native/src/trajectory_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace vts = org::littletonrobotics::vehicletrajectoryservice;

// Scales the Choreo algorithm's estimate of initial guess points, since we've found it to sometimes underestimate.
// We take the tradeoff of increased computation time since we cache paths anyway.
static const double CONTROL_INTERVAL_GUESS_SCALAR = 1.0;
static const double CONTROL_INTERVAL_GUESS_SCALAR = 1.25;

static const int MINIMUM_CONTROL_INTERVAL_COUNT = 0;

Expand Down
5 changes: 3 additions & 2 deletions trajectory_native/trajoptlib-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ elseif(${OPTIMIZER_BACKEND} STREQUAL "sleipnir")
fetchcontent_declare(
Sleipnir
GIT_REPOSITORY https://github.com/SleipnirGroup/Sleipnir.git
# main on 2024-03-02
GIT_TAG 249c4b4d688076524f8b49361b3595ee1c7b0e3a

# main on 2024-04-11
GIT_TAG a546475c97a1d137ce5b9e12a3cebb0dfd6dcc66
)
fetchcontent_makeavailable(Sleipnir)

Expand Down

0 comments on commit 4afa6e4

Please sign in to comment.