aidudezzz / deepbots

A wrapper framework for Reinforcement Learning in the Webots robot simulator using Python 3.
https://deepbots.readthedocs.io/
GNU General Public License v3.0
236 stars 50 forks source link

RobotEmitterReceiver class should inherit from Webots Robot class #114

Closed tsampazk closed 1 year ago

tsampazk commented 2 years ago

RobotEmitterReceiver class should inherit from Webots Robot class if possible, similarly to other deepbots classes which inherit from Webots Supervisor class, so that it can access whatever Webots method directly.

Right now it needs this:

        self.robot = Robot()

and then accesses internal methods as self.robot.getBasicTimeStep() or self.robot.step(self.timestep).

Inheriting the Robot class will make this class more consistent with other deepbots classes.