Skip to content

[Question] Get two different results #145

@ExplorerX-Wang

Description

@ExplorerX-Wang

Required prerequisites

Questions

I've just started learning this repository, and the following is my trial.


env = safety_gymnasium.make('SafetyPointGoal1-v0',render_mode = "human")

# 重置环境获取初始观察值
obs, info = env.reset()

for i in range(1000):
    action = (0.01,0)
    obs, reward, cost, terminated, truncated, info = env.step(action)
    print("agent velocity", env.task.agent.vel)
    print("Velocimeter :", obs[3:6])    

result is 
agent velocity [-0.28120238  0.10492423  0.        ]
Velocimeter : [0.29999554 0.00930329 0.        ]

Why are they different? and which one is the real velocity?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions