GithubHelp home page GithubHelp logo

Comments (4)

jhwangbo avatar jhwangbo commented on July 20, 2024

It is saying that you called the function with a wrong set of arguments. Is the first array float32? I am not very experienced in python so I can't tell but make sure that they all have the correct data type. The rest seems ok to me too.

from raisimgym.

ZQX323 avatar ZQX323 commented on July 20, 2024

yes, when I implement self.env.step(action, visualize=True).

If action is array([-0.17920911, -0.02736158, 0.37157712, 0.03743708, -0.7466227 ,
-0.01556192, -0.03418474, 0.19078933, -0.27589707, 0.1042255 ,
-0.49273024, -0.05912861])

it will cause error.

but when action is array([ 0.09762701, 0.43037874, 0.20552675, 0.08976637, -0.1526904 ,
0.29178822, -0.12482557, 0.78354603, 0.92732555, -0.23311697,
0.5834501 , 0.05778984], dtype=float32)

with dtype=float32, there is no error. But I think both of them should be OK. I am not familiar with pybind, would you mind to tell me which c++ file will be implemented after step/testStep function of class RaisimGymEnv in _raisim_gym.py is called? I want to check it's compatibility with different input.

from raisimgym.

ZQX323 avatar ZQX323 commented on July 20, 2024

seems step function only support float32 not float64

from raisimgym.

jhwangbo avatar jhwangbo commented on July 20, 2024

yes, that's right. but this should be a good feature. The type conversion is costly and this helps you remove it ;)

from raisimgym.

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.