Git Product home page Git Product logo

Comments (6)

qgallouedec avatar qgallouedec commented on September 21, 2024

Hi,
You should not encounter this behavior. Can you send a screenshot of the rendering? Can you publish the code to reproduce this behavior?

from panda-gym.

ZY-KK avatar ZY-KK commented on September 21, 2024

I add a object in certain position, and when I try to control robot to grasp it , it pass through the object, and also the robot even can pass through the table I add, did I add wrongly? I just add object by using p.loadURDF

from panda-gym.

ZY-KK avatar ZY-KK commented on September 21, 2024

image
as the picture shows, the finger actually pass through the object and if I try to lift it, object will not be lifted

from panda-gym.

qgallouedec avatar qgallouedec commented on September 21, 2024

Hi,

In order for me to work on this issue, I need to be able to reproduce it. The first step is to publish the minimal code that allows to reproduce it. (This is a good practice in solving issues on Github.)

With the little information you gave me, I wrote the following code, for which I don't observe any collision problem.

import panda_gym
from panda_gym.pybullet import PyBullet
from panda_gym.envs.robots.panda import Panda

sim  = PyBullet(render=True)
panda = Panda(sim, base_position=[0.0, 0.0, 0.6])
panda.reset()
sim.loadURDF(body_name='table', fileName='table/table.urdf', basePosition=[0.0, 0.0, 0.0])

while True:
    sim.step()
    panda.set_action([0.00, 0.00, -0.02, 0.00]) # going down, by 2 cm per step
    sim.render()

Screenshot 2021-06-22 at 11 28 18

Could you send me the minimal code for which you observe this problem?

from panda-gym.

ZY-KK avatar ZY-KK commented on September 21, 2024

Thanks for your answer, I do not know the reason, but now it works, maybe because I modify some code. One question, when run the code, actually robot move slowly, could you please tell me how can accelerate the move speed?

from panda-gym.

qgallouedec avatar qgallouedec commented on September 21, 2024

Reusing the previous code, you only need to modify the value of the action.

To go down, 2 cm per step:

action = [0.00, 0.00, -0.02, 0.00] # [speed_x, speed_y, speed_z, speed_fingers]
panda.set_action(action) 

If you want to discuss about the robot control, please open a new issue.

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.