@@ -38,8 +38,12 @@ add_library(
3838 tasks/tasks.h
3939 tasks/acrobot/acrobot.cc
4040 tasks/acrobot/acrobot.h
41+ tasks/bimanual/bimanual.cc
42+ tasks/bimanual/bimanual.h
4143 tasks/cartpole/cartpole.cc
4244 tasks/cartpole/cartpole.h
45+ tasks/cube/solve.cc
46+ tasks/cube/solve.h
4347 tasks/fingers/fingers.cc
4448 tasks/fingers/fingers.h
4549 tasks/hand/hand.cc
@@ -81,6 +85,8 @@ add_library(
8185 planners/cross_entropy/planner.h
8286 planners/robust/robust_planner.cc
8387 planners/robust/robust_planner.h
88+ planners/sample_gradient/planner.cc
89+ planners/sample_gradient/planner.h
8490 planners/sampling/planner.cc
8591 planners/sampling/planner.h
8692 planners/sampling/policy .cc
@@ -118,6 +124,8 @@ add_library(
118124 direct/trajectory.h
119125 direct/model_parameters.cc
120126 direct/model_parameters.h
127+ spline/spline.cc
128+ spline/spline.h
121129 app.cc
122130 app.h
123131 norm.cc
@@ -134,8 +142,11 @@ target_compile_definitions(libmjpc PRIVATE MJSIMULATE_STATIC)
134142target_link_libraries (
135143 libmjpc
136144 absl::any_invocable
145+ absl::check
137146 absl::flat_hash_map
147+ absl::log
138148 absl::random_random
149+ absl::span
139150 glfw
140151 lodepng
141152 mujoco::mujoco
@@ -173,6 +184,28 @@ if(APPLE)
173184 target_link_libraries (mjpc "-framework Cocoa" )
174185endif ()
175186
187+ add_executable (
188+ testspeed
189+ testspeed_app.cc
190+ testspeed.h
191+ testspeed.cc
192+ )
193+ target_link_libraries (
194+ testspeed
195+ absl::flags
196+ absl::flags_parse
197+ absl::random_random
198+ absl::strings
199+ libmjpc
200+ mujoco::mujoco
201+ threadpool
202+ Threads::Threads
203+ )
204+ target_include_directories (testspeed PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /..)
205+ target_compile_options (testspeed PUBLIC ${MJPC_COMPILE_OPTIONS} )
206+ target_link_options (testspeed PRIVATE ${MJPC_LINK_OPTIONS} )
207+ target_compile_definitions (testspeed PRIVATE MJSIMULATE_STATIC)
208+
176209add_subdirectory (tasks)
177210
178211if (BUILD_TESTING AND MJPC_BUILD_TESTS)
0 commit comments