Skip to content
Open
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
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ option(VAMP_FORCE_CLANG "Force the use of Clang." OFF)
option(VAMP_BUILD_PYTHON_BINDINGS "Build VAMP Python bindings" ON)
option(VAMP_INSTALL_CPP_LIBRARY "Install VAMP C++ library (disable for Python wheel builds)" ON)

option(VAMP_BUILD_TESTS "Build VAMP C++ tests" OFF)
option(VAMP_BUILD_CPP_DEMO "Build VAMP C++ Demo Scripts" OFF)
option(VAMP_BUILD_OMPL_DEMO "Build VAMP C++ OMPL Integration Demo Scripts" OFF)
option(VAMP_OMPL_PATH "Search Path for OMPL Installation - Only Needed for Demo Script" "")
Expand Down Expand Up @@ -137,6 +138,14 @@ if(VAMP_INSTALL_CPP_LIBRARY)
)
endif()

# C++ tests
if(VAMP_BUILD_TESTS)
enable_testing()
add_executable(vamp_cuboid_kernels_test tests/cuboid_kernels_test.cc)
target_link_libraries(vamp_cuboid_kernels_test PRIVATE vamp_cpp)
add_test(NAME cuboid_kernels COMMAND vamp_cuboid_kernels_test)
endif()

# C++ demos
if(VAMP_BUILD_CPP_DEMO)
add_executable(vamp_rrtc_example scripts/cpp/rrtc_example.cc)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ pip install vamp-planner
>
> The two-arm `bimanual_iiwa_tool` robot (two iiwa arms with a gripper each; the gripper tool frames are two end-effectors, so held objects can be attached to either) is not built by default. Select it when installing, e.g. `pip install . -C cmake.define.VAMP_ROBOT_MODULES="panda;bimanual_iiwa_tool" -C cmake.define.VAMP_ROBOT_STRUCTS="Panda;BimanualIiwaTool"`, then see `scripts/bimanual_attachments_example.py` (planning with one attachment per gripper, visualized with viser).
>
> The mobile bimanual `ridgeback_dual_panda` robot (Ridgeback base with x, y and yaw joints plus two Panda arms, 17 degrees of freedom; collision model of spheres and two cuboids) is not built by default either. Select it when installing, e.g. `pip install . -C cmake.define.VAMP_ROBOTS="panda;ridgeback_dual_panda"`, then see `scripts/ridgeback_dual_panda_example.py` (plans the base and both arms together, visualized with viser).
>
> **`pip install .` builds Panda, UR5, Fetch and Baxter by default**, because every robot adds a large header to the build. To change the set, for example `pip install . -C cmake.define.VAMP_ROBOTS="ur5;panda;fetch;baxter;sphere"`, or `-C cmake.define.VAMP_ROBOTS=all` for everything (`sphere`, `ur5`, `panda`, `bimanual_panda`, `fetch`, `baxter`, `digit`, `r2c6`, `bimanual_iiwa_tool`, `g1_unitree`).

VAMP requires the following system dependencies:
Expand Down
2 changes: 2 additions & 0 deletions cmake/Python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ if(VAMP_BUILD_PYTHON_BINDINGS)
r2c6=R2c6
bimanual_iiwa_tool=BimanualIiwaTool
g1_unitree=G1Unitree
kmriiwa_tool=KMRIiwaTool
ridgeback_dual_panda=RidgebackDualPanda
)

if(NOT VAMP_ROBOT_MODULES)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ VAMP_LTO = "OFF"
# Choose others at install time, for example:
# pip install . -C cmake.define.VAMP_ROBOTS="ur5;panda;fetch;baxter;bimanual_panda;digit"
# pip install . -C cmake.define.VAMP_ROBOTS=all
# Known names: sphere, ur5, panda, bimanual_panda, fetch, baxter, digit, r2c6, bimanual_iiwa_tool, g1_unitree.
# Known names: sphere, ur5, panda, bimanual_panda, fetch, baxter, digit, r2c6, bimanual_iiwa_tool, g1_unitree,
# kmriiwa_tool, ridgeback_dual_panda.
VAMP_ROBOTS = "ur5;panda;fetch;baxter"
Loading