Small C++ library for representing meshes and point clouds in a VTK viewer.
If the following are enabled, some functionalities related to the iCub robot and/or YARP are also available.
git clone https://github.com/xenvre/robots-viz.git
cd robots-viz
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=<installation_path> [-DUSE_YARP=ON] [-DUSE_SUPERIMPOSE=ON] ../
make install
In order to use the library within a CMake
project
find_package(RobotsViz REQUIRED)
(...)
target_link_libraries(... RobotsViz::RobotsViz ...)
VtkContainer
: hosts the mainVTK
threaded viewer and a variable number ofVtkContent
-s;VtkContent
: abstract class for a content to be displayed;VtkPointCloud
: point cloud obtained from the depth channel of aRobotsIO::Camera::Camera
;VtkMeshOBJ
: mesh obtained from a OBJ file;VtkiCubHand
: visualization of theiCubHand
(requiresYARP
)SIiCubHand
: rendering of the contour of aiCubHand
according to the point of view of aRobotsIO::Camera::Camera
(requiresYARP
andSuperimposeMesh
)