Giter Site home page Giter Site logo

Comments (6)

qgallouedec avatar qgallouedec commented on August 16, 2024

What is your OS? What the version you use for panda-gym and pybullet?

from panda-gym.

yoyostudy avatar yoyostudy commented on August 16, 2024

Thanks for your quick response!

I am using Ubuntu, conda environment, python3.8. I guess the panda-gym version I am using is 3.0.7, and the pybullet version is 3.2.5.

(rl) yoyo@yoyo:~/Documents/intern/panda-gym/examples$ pip show panda-gym
Name: panda-gym
Version: 3.0.7
Summary: Set of robotic environments based on PyBullet physics engine and gymnasium.
Home-page: https://github.com/qgallouedec/panda-gym
Author: Quentin GALLOUÉDEC
Author-email: [email protected]
License: 
Location: /home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages
Requires: gymnasium, numpy, pybullet, scipy
Required-by: 
(rl) yoyo@yoyo:~/Documents/intern/panda-gym/examples$ pip show pybullet
Name: pybullet
Version: 3.2.5
Summary: Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning
Home-page: https://github.com/bulletphysics/bullet3
Author: Erwin Coumans, Yunfei Bai, Jasmine Hsu
Author-email: [email protected]
License: zlib
Location: /home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages
Requires: 
Required-by: panda-gym

from panda-gym.

qgallouedec avatar qgallouedec commented on August 16, 2024

That's really strange. The CI passes with the exact same configuration: https://github.com/qgallouedec/panda-gym/actions/runs/5676508527/job/15383646275

Have you altered panda_gym/assets/colored_cubed.png files by any chance?

Is the following code giving an error? If yes, please provide the full traceback.

import gymnasium as gym
import panda_gym

env = gym.make("PandaFlip-v3")
env.reset()

from panda-gym.

yoyostudy avatar yoyostudy commented on August 16, 2024

Hi, I don't think I changed any code or files. And it does return an error:

>>> env = gym.make("PandaFlip-v3")
pybullet build time: May 20 2022 19:44:17
argv[0]=--background_color_red=0.8745098114013672
argv[1]=--background_color_green=0.21176470816135406
argv[2]=--background_color_blue=0.1764705926179886
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages/gymnasium/envs/registration.py", line 801, in make
    env = env_creator(**env_spec_kwargs)
  File "/home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages/panda_gym/envs/panda_tasks.py", line 53, in __init__
    task = Flip(sim, reward_type=reward_type)
  File "/home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages/panda_gym/envs/tasks/flip.py", line 26, in __init__
    self._create_scene()
  File "/home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages/panda_gym/envs/tasks/flip.py", line 32, in _create_scene
    self.sim.create_box(
  File "/home/yoyo/anaconda3/envs/internrl/lib/python3.8/site-packages/panda_gym/pybullet.py", line 451, in create_box
    texture_uid = self.physics_client.loadTexture(texture_path)
pybullet.error: Error loading texture

Thank you

from panda-gym.

qgallouedec avatar qgallouedec commented on August 16, 2024

It seems like the texture for the coloured cube can't be loaded in your config. Can you download the texture:

https://github.com/qgallouedec/panda-gym/blob/master/panda_gym/assets/colored_cube.png

and then execute the following:

import pybullet_utils.bullet_client as bc

client  = bc.BulletClient()
client.loadTexture("/path/to/colored_cube.png")

from panda-gym.

ChenWEIx2 avatar ChenWEIx2 commented on August 16, 2024

check the assets folder in your anaconda path (/anaconda3/envs/env_name/lib/python3.8/site-packages/panda_gym/assets), you might find that missing the "colored_cube.png" file, add it under the assets folder.

from panda-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.