11#ifndef QUADCOPTER_SIM_ENV_H
12#define QUADCOPTER_SIM_ENV_H
14#include "rlenvs/envs/env_base.h"
15#include "rlenvs/extern/HTTPRequest.hpp"
16#include "rlenvs/rlenvs_types_v2.h"
17#include "rlenvs/time_step.h"
19#include <boost/noncopyable.hpp>
23#include <unordered_map>
29namespace gym_pybullet_drones
32class QuadcopterSimEnv :
public EnvBase<TimeStep<std::vector<real_t>>, std::vector<real_t>>
35 typedef typename EnvBase<TimeStep<std::vector<real_t>>, std::vector<real_t>>
::time_step_type
37 typedef typename EnvBase<TimeStep<std::vector<real_t>>, std::vector<real_t>>
::action_type
50 virtual void make(
const std::string &version,
51 const std::unordered_map<std::string, std::any> &options)
override final;
63 virtual void close() override final;
69 reset(uint_t seed, const std::unordered_map<std::
string, std::any> &options) override final;
82 time_step_type create_time_step_from_response_(const http::Response &response) const;
86 : EnvBase(url + "/gym-pybullet-drones/quadcopter-sim-env", name), current_state_()
Definition quadcopter_sim_env.h:33
virtual time_step_type step(const action_type &action) override final
step
Definition quadcopter_sim_env.cpp:49
virtual void make(const std::string &version, const std::unordered_map< std::string, std::any > &options) override final
make. Builds the environment. Optionally we can choose if the environment will be slippery
Definition quadcopter_sim_env.cpp:22
EnvBase< TimeStep< std::vector< real_t > >, std::vector< real_t > >::action_type action_type
Definition quadcopter_sim_env.h:38
bool is_alive() const noexcept
Query the environment server is the environment has been created.
Definition quadcopter_sim_env.cpp:108
virtual time_step_type reset(uint_t seed, const std::unordered_map< std::string, std::any > &options) override final
Reset the environment.
Definition quadcopter_sim_env.cpp:79
EnvBase< TimeStep< std::vector< real_t > >, std::vector< real_t > >::time_step_type time_step_type
Definition quadcopter_sim_env.h:36
virtual void close() override final
close the environment
Definition quadcopter_sim_env.cpp:124
Definition quadcopter_sim_env.cpp:16