Skip to content

Commit c2f5111

Browse files
committed
Update examples/CMakeLists for Ray examples
1 parent 8546bcf commit c2f5111

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ IF(RLENVSCPP_WEBOTS)
2424
LINK_DIRECTORIES(${WEBOTS_LIB_DIRS})
2525
ENDIF()
2626

27+
IF(RLENVSCPP_RAY)
28+
INCLUDE_DIRECTORIES(${RAY_INCLUDE_DIRS})
29+
LINK_DIRECTORIES(${RAY_LIB_DIRS})
30+
ENDIF()
31+
2732
LINK_DIRECTORIES(${CMAKE_INSTALL_PREFIX})
2833
MESSAGE( STATUS "${CMAKE_INSTALL_PREFIX}")
2934

@@ -44,3 +49,7 @@ ADD_SUBDIRECTORY(example_13)
4449
IF(RLENVSCPP_WEBOTS)
4550
ADD_SUBDIRECTORY(webots/world_1)
4651
ENDIF()
52+
53+
IF(RLENVSCPP_RAY)
54+
ADD_SUBDIRECTORY(ray/ray_example_2)
55+
ENDIF()

src/rlenvs/envs/webots_envs/epuck_simple_grid_world.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
///
4142
class EpuckSimpleGridWorld final: public WebotsEnvBase<TimeStep<std::vector<real_t>>,
4243
ContinuousVectorStateDiscreteActionEnv<3, // the state space has size 3

0 commit comments

Comments
 (0)