bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
ppo_lunar_lander.cpp File Reference
#include "bitrl/base/bitrl_config.h"
#include "bitrl/base/bitrl_types.h"
#include "bitrl/maths/optimization/optimizer_type.h"
#include "bitrl/maths/optimization/pytorch_optimizer_factory.h"
#include "bitrl/maths/statistics/distributions/torch_normal.h"
#include "bitrl/rl/algorithms/pg/ppo.h"
#include "bitrl/rl/algorithms/pg/ppo_config.h"
#include "bitrl/rl/trainers/rl_serial_agent_trainer.h"
#include "bitrl/utils/torch_adaptor.h"
#include "bitrl/base/bitrl_log.h"
#include "bitrl/envs/gymnasium/box2d/lunar_lander_env.h"
#include "bitrl/network/rest_rl_env_client.h"
#include "bitsim/utils/io/csv_file_writer.h"
#include <torch/torch.h>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <unordered_map>
#include <vector>
Include dependency graph for ppo_lunar_lander.cpp:

Classes

class  rl_example_11::ActorNetImpl
class  rl_example_11::CriticNetImpl
 The Critic network. More...
class  rl_example_11::TorchNormalDist
 Normal distribution to be used with torchlib. More...
struct  rl_example_11::PPOConfig
 The PPOConfig struct. Configuration for PPOSolver class. More...
class  rl_example_11::PPOSolver< EnvType, PolicyType, CriticType >
struct  rl_example_11::TorchAdaptor
 The TorchStateAdaptor struct. More...

Namespaces

namespace  rl_example_11

Typedefs

using rl_example_11::real_t
 real_t
typedef torch::Tensor rl_example_11::torch_tensor_t
 torch_tensor_t
using rl_example_11::uint_t
 uint_t

Enumerations

enum class  rl_example_11::DeviceType
 Enumeration of various device types. More...

Functions

 rl_example_11::TORCH_MODULE (ActorNet)
 rl_example_11::TORCH_MODULE (CriticNet)
int main ()

Function Documentation

◆ main()

int main ( )