Skip to content

Commit adbf424

Browse files
committedDec 11, 2018
WAFR upload
0 parents  commit adbf424

35 files changed

+9214
-0
lines changed
 

‎.gitignore

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# temporary files for debug (which I often use)
2+
t.txt
3+
t2.txt
4+
t3.txt
5+
t4.txt
6+
7+
# Prerequisites
8+
*.d
9+
10+
# Compiled Object files
11+
*.slo
12+
*.lo
13+
*.o
14+
*.obj
15+
*.ko
16+
*.elf
17+
18+
# Linker output
19+
*.ilk
20+
*.map
21+
*.exp
22+
23+
# Precompiled Headers
24+
*.gch
25+
*.pch
26+
27+
# Compiled Dynamic libraries
28+
*.so
29+
*.so.*
30+
*.dylib
31+
*.dll
32+
33+
# Fortran module files
34+
*.mod
35+
*.smod
36+
37+
# Compiled Static libraries
38+
*.lai
39+
*.la
40+
*.a
41+
*.lib
42+
*.lo
43+
44+
# Executables
45+
*.exe
46+
*.out
47+
*.app
48+
*.i*86
49+
*.x86_64
50+
*.hex
51+
52+
# Debug files
53+
*.dSYM/
54+
*.su
55+
*.idb
56+
*.pdb
57+
58+
# Kernel Module Compile Results
59+
*.mod*
60+
*.cmd
61+
.tmp_versions/
62+
modules.order
63+
Module.symvers
64+
Mkfile.old
65+
dkms.conf
66+
67+
# CUDA
68+
*.i
69+
*.ii
70+
*.gpu
71+
*.ptx
72+
*.cubin
73+
*.fatbin

‎DDPHelpers.cuh

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*****************************************************************
2+
* DDP Helper Functions
3+
* (currently only supports iLQR - UDP in future release)
4+
*
5+
* Combines the following files (note they have cross dependencies
6+
* which defines the order of imports):
7+
* 1: Backward Pass Helpers
8+
* 2: Forward Pass Helpers
9+
* 3: Next Iteration Setup and Init Helpers
10+
* 4: DDP Algorithm Wrappers
11+
* 5: MPC Helpers
12+
*
13+
*****************************************************************/
14+
// include util functions and config parameters file
15+
#include "config.h"
16+
17+
// include the correct set of cost and dynamics functions
18+
#if PLANT == 1
19+
#include "plants/cost_pend.cuh"
20+
#include "plants/dynamics_pend.cuh"
21+
#elif PLANT == 2
22+
#include "plants/cost_cart.cuh"
23+
#include "plants/dynamics_cart.cuh"
24+
#elif PLANT == 3
25+
#include "plants/cost_quad.cuh"
26+
#include "plants/dynamics_quad.cuh"
27+
#elif PLANT == 4
28+
#include "plants/cost_arm.cuh"
29+
#include "plants/dynamics_arm.cuh"
30+
#endif
31+
32+
// include integrators for those dynamics
33+
#include "utils/integrators.cuh"
34+
35+
// 1: Backward Pass Helpers
36+
#include "DDPHelpers/bpHelpers.cuh"
37+
38+
// 2: Forward Pass Helpers
39+
#include "DDPHelpers/fpHelpers.cuh"
40+
41+
// 3: Next Iteration Setup and Init Helpers
42+
#include "DDPHelpers/nisInitHelpers.cuh"
43+
44+
// 4: DDP Algorithm Wrappers
45+
#if !defined(MPC_MODE) || MPC_MODE == 0
46+
#include "DDPHelpers/DDPWrappers.cuh"
47+
#endif
48+
49+
// 5: MPC Helpers and Wrappers//
50+
#if defined(MPC_MODE) && MPC_MODE == 1
51+
#include "DDPHelpers/MPCHelpers.cuh"
52+
#endif

0 commit comments

Comments
 (0)