Test saving and parsing JSON configuration for Panda 3D renderer.
#include <visp3/core/vpConfig.h>
#if defined(VISP_HAVE_PANDA3D) && defined(VISP_HAVE_CATCH2)
#include <visp3/ar/vpPanda3DBaseRenderer.h>
#include <visp3/ar/vpPanda3DRGBRenderer.h>
#include <visp3/ar/vpPanda3DGeometryRenderer.h>
#include <visp3/core/vpCameraParameters.h>
#include <catch_amalgamated.hpp>
#ifdef ENABLE_VISP_NAMESPACE
#endif
#include <random>
{
}
SCENARIO("Instanciating multiple Panda3D renderers", "[Panda3D]")
{
GIVEN("A single renderer")
{
r1.setRenderParameters(defaultRenderParams());
r1.initFramework();
THEN("Creating another, uncoupled renderer is ok and its destruction does not raise an error")
{
r2.setRenderParameters(defaultRenderParams());
r2.initFramework();
}
}
}
int main(int argc, char *argv[])
{
Catch::Session session;
session.applyCommandLine(argc, argv);
int numFailed = session.run();
return numFailed;
}
#else
#include <stdlib.h>
int main() { return EXIT_SUCCESS; }
#endif
Generic class defining intrinsic camera parameters.
Renderer that outputs object geometric information.
@ CAMERA_NORMALS
Surface normals in the object frame.
Rendering parameters for a panda3D simulation.