File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/rlenvs/envs/webots_envs Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ IF(RLENVSCPP_WEBOTS)
2424 LINK_DIRECTORIES (${WEBOTS_LIB_DIRS} )
2525ENDIF ()
2626
27+ IF (RLENVSCPP_RAY)
28+ INCLUDE_DIRECTORIES (${RAY_INCLUDE_DIRS} )
29+ LINK_DIRECTORIES (${RAY_LIB_DIRS} )
30+ ENDIF ()
31+
2732LINK_DIRECTORIES (${CMAKE_INSTALL_PREFIX} )
2833MESSAGE ( STATUS "${CMAKE_INSTALL_PREFIX} " )
2934
@@ -44,3 +49,7 @@ ADD_SUBDIRECTORY(example_13)
4449IF (RLENVSCPP_WEBOTS)
4550 ADD_SUBDIRECTORY (webots/world_1)
4651ENDIF ()
52+
53+ IF (RLENVSCPP_RAY)
54+ ADD_SUBDIRECTORY (ray/ray_example_2)
55+ ENDIF ()
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ using namespace rlenvscpp::rigid_bodies::webots_robots;
3737// / "WEBOTS_HOME/projects/robots/gctronic/e-puck/protos/E-puck.proto"
3838// / The environment returns the robot translation as an observation
3939// / i.e. the (x,y,z) coordinates of the robot position
40+ // / The maximum reward the robot can achieve
4041// /
4142class EpuckSimpleGridWorld final : public WebotsEnvBase<TimeStep<std::vector<real_t >>,
4243 ContinuousVectorStateDiscreteActionEnv<3 , // the state space has size 3
You can’t perform that action at this time.
0 commit comments