Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the environments #65

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/environments/environments/CarBlockEnvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from rclpy import Future
from sensor_msgs.msg import LaserScan

from environments.ParentCarEnvironment import ParentCarEnvironment
from environments.GeneralCarEnvironment import GeneralCarEnvironment


class CarBlockEnvironment(ParentCarEnvironment):
class CarBlockEnvironment(GeneralCarEnvironment):
"""
CarWall Reinforcement Learning Environment:

Expand Down
4 changes: 2 additions & 2 deletions src/environments/environments/CarTrack1Environment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from environments.CarTrackParentEnvironment import CarTrackParentEnvironment
from environments.CarTrackGeneralEnvironment import CarTrackGeneralEnvironment


class CarTrack1Environment(CarTrackParentEnvironment):
class CarTrack1Environment(CarTrackGeneralEnvironment):
"""
track1.sdf
"""
Expand Down
4 changes: 2 additions & 2 deletions src/environments/environments/CarTrack2Environment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from environments.CarTrackParentEnvironment import CarTrackParentEnvironment
from environments.CarTrackGeneralEnvironment import CarTrackGeneralEnvironment


class CarTrack2Environment(CarTrackParentEnvironment):
class CarTrack2Environment(CarTrackGeneralEnvironment):
"""
track2.sdf
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from sensor_msgs.msg import LaserScan

from environment_interfaces.srv import Reset
from environments.ParentCarEnvironment import ParentCarEnvironment
from environments.GeneralCarEnvironment import GeneralCarEnvironment


class CarTrackParentEnvironment(ParentCarEnvironment):
class CarTrackGeneralEnvironment(GeneralCarEnvironment):
"""
CarTrack Reinforcement Learning Environment:

Expand Down
4 changes: 2 additions & 2 deletions src/environments/environments/CarTrackOriginalEnvironment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from environments.CarTrackParentEnvironment import CarTrackParentEnvironment
from environments.CarTrackGeneralEnvironment import CarTrackGeneralEnvironment


class CarTrackOriginalEnvironment(CarTrackParentEnvironment):
class CarTrackOriginalEnvironment(CarTrackGeneralEnvironment):
"""
track_original.sdf
"""
Expand Down
4 changes: 2 additions & 2 deletions src/environments/environments/CarWallEnvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from rclpy import Future
from sensor_msgs.msg import LaserScan

from environments.ParentCarEnvironment import ParentCarEnvironment
from environments.GeneralCarEnvironment import GeneralCarEnvironment


class CarWallEnvironment(ParentCarEnvironment):
class CarWallEnvironment(GeneralCarEnvironment):
"""
CarWall Reinforcement Learning Environment:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from environment_interfaces.srv import Reset


class ParentCarEnvironment(Node):
class GeneralCarEnvironment(Node):
def __init__(self, env_name, car_name, reward_range, max_steps, collision_range, step_length):
super().__init__(env_name + '_environment')

Expand Down