31 #include <catch2/catch.hpp> 36 #include <Rcs_macros.h> 37 #include <Rcs_resourcePath.h> 48 Rcs_addResourcePath(
"../../config");
50 std::vector<std::string> configs{
"BallOnPlate/ex_config.xml",
"MiniGolf/ex_config_export.xml"};
52 for (
auto& configFile : configs) {
53 DYNAMIC_SECTION(
"Config " << configFile) {
66 for (
int step = 0; step < numSteps; ++step) {
71 obs = env.
step(action);
77 MatNd_destroy(action);
MatNd * createValueMatrix() const
void sample(MatNd *out) const
virtual MatNd * reset(PropertySource *domainParam=PropertySource::empty(), const MatNd *initState=NULL)
const BoxSpace * actionSpace()
const BoxSpace * observationSpace()
int simpleRollout(int64_t numSteps)
static PropertySource * empty()
TEST_CASE("Environment run")
bool checkDimension(const MatNd *values, std::string *msg=NULL) const
virtual MatNd * step(const MatNd *action, const MatNd *disturbance=NULL)