Skip to content

Commit 06fd32c

Browse files
committed
added input-constrained iLQR files
1 parent 1d02e61 commit 06fd32c

8 files changed

Lines changed: 804 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Build directory
2+
build/
3+
14
# Prerequisites
25
*.d
36

CMakeLists.txt

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
cmake_minimum_required(VERSION 3.11)
2+
3+
project(constrained-ilqr VERSION 0.1.0)
4+
5+
set(CMAKE_CXX_STANDARD 11)
6+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7+
8+
include(FetchContent)
9+
FetchContent_Declare(
10+
eigen3
11+
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
12+
GIT_TAG 3.4.0
13+
GIT_SHALLOW TRUE
14+
GIT_PROGRESS TRUE
15+
)
16+
FetchContent_Declare(
17+
projected-descent
18+
GIT_REPOSITORY https://github.com/JuDO-dev/projected-descent.git
19+
GIT_TAG main
20+
GIT_SHALLOW TRUE
21+
GIT_PROGRESS TRUE
22+
)
23+
FetchContent_MakeAvailable(eigen3 projected-descent)
24+
25+
add_library(constrained_ilqr INTERFACE)
26+
target_include_directories(constrained_ilqr INTERFACE
27+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
28+
$<INSTALL_INTERFACE:include>
29+
)
30+
31+
target_link_libraries(constrained_ilqr INTERFACE
32+
Eigen3::Eigen
33+
projected_descent
34+
)
35+
36+
option(BUILD_TESTS "Build tests" ON)
37+
if(BUILD_TESTS)
38+
enable_testing()
39+
add_subdirectory(tests)
40+
endif()

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Eduardo M. G. Vila
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)