Closed richard98hess444 closed 2 months ago
Hi, I've figured out the problem.
Inside the constant_commands
function from custom_rl_env.py
, where the tensor list is created
tensor_lst = torch.tensor([0, 0, 0], device=env.device).repeat(env.num_envs, 1)
[0, 0, 0]
is the cause since the dtype is assigned as integer. I replace the line by
tensor_lst = torch.tensor([0.0, 0.0, 0.0], dtype=torch.float32, device=env.device).repeat(env.num_envs, 1)
and the problem is solved!
Hello! I will be very happy for your pr, dear @richard98hess444 !
Thanks, @richard98hess444 !
Hi,
I found that the robot Go2 doesn't move when the velocity command is less than 1.0. I tried it with changing values in
sub_keyboard_event
likecustom_rl_env.base_command["0"] = [0.8, 0, 0]
or usingBoth can't make Go2 move. Where can I tune these velocity limit?
BTW I'm using
( after the update, it runs truely faster than 4.1, great!)