Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
6 changes: 3 additions & 3 deletions doc/rtd/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# -- Project information -----------------------------------------------------

project = 'MLPro Documentations'
copyright = '2024 South Westphalia University of Applied Sciences, Germany'
copyright = '2025 South Westphalia University of Applied Sciences, Germany'
author = 'Detlef Arend, Steve Yuwono, Mochammad Rizky Diprasetya et al'

# The full version, including alpha/beta/rc tags
release = '1.0.2'
release = '1.0.3'


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -85,4 +85,4 @@ def setup(app):
'github_user': 'fhswf',
'github_repo': 'MLPro-Int-MuJoCo',
'github_version': 'main/doc/docs/',
}
}
2 changes: 1 addition & 1 deletion doc/rtd/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mlpro[full]>=1.4.4
mlpro[full]>=2.1.0
mujoco>=3.1.2
lxml>=4.9.2

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mlpro[full]>=1.4.4
mlpro[full]>=2.1.0
mujoco>=3.1.2
lxml>=4.9.2
lxml>=4.9.2
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = mlpro-int-mujoco
version = 1.0.2
version = 1.0.3
author = MLPro Team
author_email = mlpro@listen.fh-swf.de
description = MLPro: Integration MuJoCo
Expand All @@ -18,14 +18,14 @@ classifiers =
package_dir =
= src
packages = find:
python_requires = >=3.10
python_requires = >=3.11
include_package_data = True

[options.packages.find]
where = src

[options.extras_require]
full =
mlpro[full]>=1.4.4
mlpro[full]>=2.1.0
mujoco>=3.1.2
lxml>=4.9.2
4 changes: 3 additions & 1 deletion src/mlpro_int_mujoco/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from mlpro_int_mujoco.wrappers import *
from .wrappers import *
from .envs import *
from .systems import *
1 change: 1 addition & 0 deletions src/mlpro_int_mujoco/envs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .cartpole import *
21 changes: 14 additions & 7 deletions src/mlpro_int_mujoco/envs/cartpole.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,28 @@
## -- 2023-02-23 1.0.0 MRD Released first version
## -- 2024-05-08 1.1.0 SY Migration from MLPro to MLPro-Int-MuJoCo
## -- 2024-08-13 1.1.1 SY Refactoring
## -- 2025-08-03 1.1.2 SY Refactoring
## -------------------------------------------------------------------------------------------------

"""
Ver. 1.1.1 (2024-08-13)
Ver. 1.1.2 (2025-08-03)

This module provides a CartPole environment with MuJoCo Simulation.
"""


import os
import mlpro_int_mujoco
from mlpro.rl.models_env import Environment
from mlpro.rl.models_agents import Reward, State
from mlpro.bf.ops import Mode
from mlpro.bf.various import Log
from mlpro.bf.math import Dimension
from mlpro.rl import *
from mlpro.bf import *
from mlpro.bf.math import *
from mlpro.bf.plot import *
from mlpro.bf.systems import *

# Export list for public API
__all__ = [
'CartpoleMujoco'
]



Expand Down Expand Up @@ -134,4 +140,5 @@ def _action_to_mujoco(self, p_mlpro_action):
## -------------------------------------------------------------------------------------------------
class CartpoleMujocoContinuous(CartpoleMujoco):

C_NAME = "CartpoleMujocoContinuous"

C_NAME = "CartpoleMujocoContinuous"
2 changes: 1 addition & 1 deletion src/mlpro_int_mujoco/wrappers/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from mlpro_int_mujoco.wrappers.basics import *
from .basics import *
21 changes: 18 additions & 3 deletions src/mlpro_int_mujoco/wrappers/basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
## -- 2023-04-14 1.2.7 MRD Add depth data to the state, simplify _get_camera_data
## -- 2024-04-10 1.2.8 DA Refactoring
## -- 2024-05-08 1.3.0 SY Migration from MLPro to MLPro-Int-MuJoCo
## -- 2025-08-03 1.3.1 SY Refactoring
## -------------------------------------------------------------------------------------------------


"""
Ver. 1.3.0 (2024-05-08)
Ver. 1.3.1 (2025-08-03)

This module wraps bf.Systems with MuJoCo Simulation functionality.

Expand All @@ -50,9 +50,23 @@
from threading import Lock
from lxml import etree

from mlpro.rl.models import *
from mlpro.rl import *
from mlpro.bf import *
from mlpro.bf.math import *
from mlpro.bf.systems import *
from mlpro.bf.plot import *
from mlpro.bf.ml import *
from mlpro.wrappers import Wrapper

# Export list for public API
__all__ = [
'CallbacksViewer',
'BaseViewer',
'OffRenderViewer',
'RenderViewer',
'MujocoHandler'
]




Expand Down Expand Up @@ -960,3 +974,4 @@ def _close(self):
if self._viewer is not None:
self._viewer.close()
self._viewer = None

6 changes: 3 additions & 3 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


setup(name='mlpro-int-mujoco',
version='1.0.2',
version='1.0.3',
description='MLPro: Integration MuJoCo',
author='MLPro Team',
author_mail='mlpro@listen.fh-swf.de',
Expand All @@ -12,10 +12,10 @@
# Package dependencies for full installation
extras_require={
"full": [
"mlpro[full]>=1.4.4",
"mlpro[full]>=2.1.0",
"mujoco>=3.1.2",
"lxml>=4.9.2"
],
},

zip_safe=False)
zip_safe=False)
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@


import mlpro_int_mujoco
from mlpro.bf.various import Log
from mlpro.bf import *
from mlpro.bf.systems import *
import os
import numpy as np



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@


import mlpro_int_mujoco
from mlpro.bf.various import Log
from mlpro.bf import *
from mlpro.bf.systems import *
import numpy as np
import os



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ You will learn:

import random
import mlpro_int_mujoco
from mlpro.bf.various import Log
from mlpro.bf import *
from mlpro.bf.systems import *
import os



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,12 @@
import os

import mlpro_int_mujoco
from mlpro.bf.ml import Model
from mlpro.bf.ops import Mode
from mlpro.bf.various import Log
from mlpro.rl.models_agents import Policy, Agent
from mlpro.rl.models_train import RLScenario
from mlpro.bf.systems import State, Action
from mlpro.rl.models_env_ada import SARSElement
from mlpro.rl.models_env import Environment
from mlpro.rl.models_agents import Reward
from mlpro.rl import *
from mlpro.bf import *
from mlpro.bf.ml import *
from mlpro.bf.systems import *
from mlpro.bf.math import *
from mlpro.bf.plot import *


# 1 Implement the Environment
Expand Down Expand Up @@ -168,4 +164,4 @@ def _setup(self, p_mode, p_ada: bool, p_visualize:bool, p_logging) -> Model:

myscenario.reset(p_seed=3)

myscenario.run()
myscenario.run()
2 changes: 1 addition & 1 deletion test/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

import sys
import os
from mlpro.bf.various import Log
from mlpro.bf import *
import runpy
import pytest

Expand Down
Loading