Comments (6)
I can't reproduce the issue. Here is the screen recording of OpenGL GUI (with the correct fps):
Screen.Recording.2023-10-12.at.12.10.43.mov
And the gif generated (also with the correct fps):
from panda-gym.
I can't reproduce the issue. Here is the screen recording of OpenGL GUI (with the correct fps):
Screen.Recording.2023-10-12.at.12.10.43.mov
And the gif generated (also with the correct fps):
If you add a few more frames to the GIF, you will notice that the robot arm stops moving in the later frames. In this video, you can observe that the robotic arm remains stationary during the second, third, and fourth seconds, although it should be in motion.
from panda-gym.
If you add a few more frames to the GIF, you will notice that the robot arm stops moving in the later frames. In this video, you can observe that the robotic arm remains stationary during the second, third, and fourth seconds, although it should be in motion.
from panda-gym.
It moves slowly (because the desired position you've defined evolves slowly), but it's not stationary.
from panda-gym.
If you change a bit your desired positions, here is what you get:
import gymnasium as gym
import panda_gym
import matplotlib.pyplot as plt
from matplotlib import animation
import numpy as np
def display_frames_as_gif(frames):
patch = plt.imshow(frames[0])
plt.axis("off")
def animate(i):
patch.set_data(frames[i])
anim = animation.FuncAnimation(plt.gcf(), animate, frames=len(frames), interval=5)
anim.save("panda.gif", writer="pillow", fps=25)
env = gym.make("PandaReach-v3", render_mode="rgb_array", renderer="OpenGL")
observation, info = env.reset()
z = observation["observation"][2]
theta = np.linspace(0, 20 * np.pi, 1000)
r = 0.1
desired_positions = np.stack([r * np.cos(theta), r * np.sin(theta), z * np.ones(1000)], axis=1)
frames = []
for i in range(200):
frames.append(env.render())
current_position = observation["observation"][0:3]
desired_position = desired_positions[i]
action = 5.0 * (desired_position - current_position)
observation, reward, terminated, truncated, info = env.step(action)
env.close()
display_frames_as_gif(frames)
from panda-gym.
I get it. Thank you very much,Gallouedec.
from panda-gym.
Related Issues (20)
- pybullet.error: Error loading texture HOT 6
- When is it panda-gym going to be compatible with python 3.11? HOT 1
- how to realize the sb3 train demo code with panda-gym? HOT 2
- Typo in the `core.py` script HOT 1
- `NAN` in the training HOT 1
- How to get `predict` data from a saved model? HOT 2
- TypeError: catching classes that do not inherit from BaseException is not allowed HOT 6
- Shape of `achieved_goal` and `desired_goal` HOT 6
- Discussion about the future work HOT 9
- Decreasing Size of Action Space HOT 2
- Compatibility of gym-0.24 branch? HOT 2
- panda-gym v2 error; "TypeError: catching classes that do not inherit from BaseException is not allowed". HOT 2
- Clarification about 'observation', 'achieved_goal' and 'desired_goal' HOT 5
- Flip and Stack question HOT 3
- change the observation and return HOT 1
- reproduce the results HOT 1
- reproduce the results HOT 2
- Set to move in a two-dimensional plane HOT 6
- Clarification about the observation or system state returned by the task class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panda-gym.