Skip to content
Closed
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
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ target_include_directories(vamp_cpp
target_link_libraries_system(vamp_cpp
INTERFACE
Eigen3::Eigen
nigh
pdqsort
)

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ pip install vamp-planner

> [!IMPORTANT]
> VAMP comes with precompiled robots! If you want to add your own, use [cricket](https://github.com/CoMMALab/cricket) and follow the instructions there.
>
> 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).

VAMP requires the following system dependencies:
- [CMake](https://cmake.org/) version 3.16 or greater.
Expand All @@ -100,7 +102,6 @@ VAMP requires the following system dependencies:

VAMP fetches the following external dependencies via [CPM](https://github.com/cpm-cmake/CPM.cmake):
- [`nanobind`](https://github.com/wjakob/nanobind): for Python bindings
- [`nigh`](https://github.com/KavrakiLab/nigh): a fork of the original [`nigh`](https://github.com/UNC-Robotics/nigh) [[4]](#4) to better use our vector types
- [`pdqsort`](https://github.com/orlp/pdqsort): for fast sorting
- [`SIMDxorshift`](https://github.com/lemire/SIMDxorshift): alternative fast random numbers for x86 machines

Expand Down
5 changes: 4 additions & 1 deletion cmake/CompilerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ set(VAMP_FAST_ARGS "-fno-math-errno -fno-signed-zeros -fno-trapping-math -fno-ro
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") # x86 supports additional flags
string(APPEND VAMP_FAST_ARGS " -fassociative-math")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # Clang supports additional fine-grained flags over GCC
string(APPEND VAMP_FAST_ARGS " -fno-honor-infinities -fno-honor-nans")
# -fno-honor-nans is deliberately NOT set: together with -fno-honor-infinities it lets the
# compiler break the kd-tree's nearest-neighbor search (it returns an infinite distance and no
# index for a 14-dimensional robot), so every planner fails immediately.
string(APPEND VAMP_FAST_ARGS " -fno-honor-infinities")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0.0) # clang 11 does not support -fapprox-func
string(APPEND VAMP_FAST_ARGS " -fapprox-func")
endif()
Expand Down
15 changes: 0 additions & 15 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ if(NOT Eigen3_FOUND)
endif()
endif()

CPMAddPackage("gh:kavrakilab/nigh#97130999440647c204e0265d05a997dbd8da4e70")
add_library(nigh INTERFACE)
target_include_directories(nigh INTERFACE $<BUILD_INTERFACE:${nigh_SOURCE_DIR}/src>)
if(VAMP_INSTALL_CPP_LIBRARY)
install(TARGETS nigh
EXPORT nigh_TARGETS
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(EXPORT nigh_TARGETS FILE nighTargets.cmake NAMESPACE nigh:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/nigh)
export(EXPORT nigh_TARGETS FILE ${CMAKE_CURRENT_BINARY_DIR}/cmake/nighTargets.cmake NAMESPACE nigh::)
endif()

CPMAddPackage("gh:orlp/pdqsort#b1ef26a55cdb60d236a5cb199c4234c704f46726")
add_library(pdqsort INTERFACE)
target_include_directories(pdqsort INTERFACE $<BUILD_INTERFACE:${pdqsort_SOURCE_DIR}>)
Expand Down
2 changes: 1 addition & 1 deletion cmake/vampConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
find_dependency(Eigen3 REQUIRED)

# VAMP requires these dependencies but they're bundled
# No need to find_dependency for nigh, pdqsort, or SIMDxorshift
# No need to find_dependency for pdqsort or SIMDxorshift
# as they're built as part of VAMP

# Include the exported targets
Expand Down
Loading
Loading