Skip to content

Commit b02a80e

Browse files
committed
Commented frontier_map init
1 parent 41b6328 commit b02a80e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_gym/envs/custom_dir/Custom_Env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def __init__(self, env_id=0, size=(32,32), obstacle_density=20, n_agents=1, rrt_
235235
block_offset = (0.5*self.block_side)/self.map_pixel_size
236236
self.map_offset = [0.25*self.map_width + block_offset - 1, 0.25*self.map_height + block_offset - 1]
237237
self.map = [-1]*self.map_len #Initializing a map_data with unknown pixels
238-
self.frontier_map = [0]*self.map_len #Initializing a map with zeros - denotes no frontier present
238+
# self.frontier_map = [0]*self.map_len #Initializing a map with zeros - denotes no frontier present
239239
self.exp_prog = 0.0
240240
self.sub_map = rospy.Subscriber("/" + self.env_ns + "/global_map", OccupancyGrid, self.map_sub)
241241
# self.frontier_sub = rospy.Subscriber("/" + self.env_ns + "/frontier_map", OccupancyGrid, self.frontier_map_sub)
@@ -513,7 +513,7 @@ def __init__(self,_env,_agent_id,_init_pos):
513513
self.goal_pos=[-1.0,-1.0] #Position of goal set by exp_package or user as coordinates of the environment (1 unit = 1 block side) - [-1,-1] denotes unknown
514514
self.goal_pixel=[-1,-1] #Position of goal as coordinates on gmapping's map (1 unit = 1 pixel size on map) - [-1,-1] denotes unknown
515515
self.map = [-1]*_env.map_len #Initializing a map_data with unknown pixels
516-
self.frontier_map = [0]*_env.map_len #Initializing a map with zeros - denotes no frontier present
516+
# self.frontier_map = [0]*_env.map_len #Initializing a map with zeros - denotes no frontier present
517517
if _env.rrt_exp:
518518
self.active_exp = _env.Exp_id['rrt_exploration']
519519
elif _env.agents_exp[_agent_id] == 0:

0 commit comments

Comments
 (0)