Skip to content

Modified directory name for consistency #89

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
File renamed without changes.
54 changes: 54 additions & 0 deletions scripts/config/envs/open_manipulator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
from math import pi

from geometry_msgs.msg import Quaternion


config = {
"ENV_NAME": "OpenManipulatorReacher",
"MAX_EPISODE_STEPS": 100,
"TERM_COUNT": 5,
"SUCCESS_COUNT": 5,
"OVERHEAD_ORIENTATION": Quaternion(
x=-0.00142460053167, y=0.999994209902, z=-0.00177030764765, w=0.00253311793936
),
# box boundary
"POLAR_RADIAN_BOUNDARY": (0.134, 0.32),
"POLAR_THETA_BOUNDARY": (-pi * 0.7 / 4, pi * 0.7 / 4),
"Z_BOUNDARY": (0.05, 0.28),
"JOINT_LIMITS": {
"HIGH": {
"J1": pi * 0.9,
"J2": pi * 0.5,
"J3": pi * 0.44,
"J4": pi * 0.65,
"GRIP": 0.019,
},
"LOW": {
"J1": -pi * 0.9,
"J2": -pi * 0.57,
"J3": -pi * 0.3,
"J4": -pi * 0.57,
"GRIP": -0.001,
},
},
# Global variables
"ACTION_DIM": 5, # Cartesian
"OBSERVATION_DIM": (25,),
# terminal condition
"INNER_RADIAN": 0.134,
"OUTER_RADIAN": 0.3,
"LOWER_RADIAN": 0.384,
"INNER_Z": 0.321,
"OUTER_Z": 0.250,
"LOWER_Z": 0.116,
"ENV_MODE": "sim",
"TRAIN_MODE": True,
"DISTANCE_THRESHOLD": 0.05,
"REWARD_RESCALE_RATIO": 1.0,
"REWARD_FUNC": "l2",
"CONTROL_MODE": "position",
}


def get():
return config
2 changes: 1 addition & 1 deletion scripts/gazebo_test_open_manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from math import cos, pi, sin

import numpy as np
from config.environment.open_manipulator import config as cfg

import rospy
from config.envs.open_manipulator import config as cfg
from envs.open_manipulator import OpenManipulatorReacherEnv
from geometry_msgs.msg import Pose, Quaternion
from open_manipulator_msgs.msg import JointPosition, KinematicsPose
Expand Down
3 changes: 1 addition & 2 deletions scripts/run_open_manipulator_reacher_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
import argparse
import importlib

from config.environment.open_manipulator import config as env_cfg

import algorithms.common.helper_functions as common_utils
from config.envs.open_manipulator import config as env_cfg
from envs.open_manipulator.open_manipulator_reacher_env import OpenManipulatorReacherEnv

# configurations
Expand Down