3D Workspace
Home
Assets
Affiliate Program
Creator Program
Sign up/Log in
?
Upgrade
DCC Bridge
Anonymous1782240601
07-04 16:19
Model Name
blue humanoid robot 3d model
Tags
blue humanoid robot
character
character modern
character rendering
character rendering modern
modern
rendering
rendering modern
robotic
Prompt
class TwoLinkArmEnv(gym.Env): """ A 2-DOF planar robotic arm environment. Observation: [joint_angle1, joint_angle2, end_effector_x, end_effector_y, target_x, target_y] Action: [angular_velocity_1, angular_velocity_2] (clipped) Reward: Negative distance to target + sparse bonus on reaching. """ metadata = {"render_modes": ["human", "rgb_array"], "render_fps": Config.RENDER_FPS} def __init__(self, render_mode: Optional[str] = None): super().__init__() self.render_mode = render_mode # Define action space (continuous velocities) self.action_space = spaces.Box( low=-1.0, high=1.0, shape=(2,), dtype=np.float32 ) # Define observation space # [q1, q2, ee_x, ee_y, target_x, target_y] high = np.array([np.pi, np.pi, 2.5, 2.5, 2.5, 2.5], dtype=np.float32) low = -high self.observation_space = spaces.Box(low=low, high=high, dtype=np.float32) self.lin
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!