GithubHelp home page GithubHelp logo

Sensors return only zeros about pyrosim HOT 3 OPEN

ccappelle avatar ccappelle commented on August 29, 2024
Sensors return only zeros

from pyrosim.

Comments (3)

abernatskiy avatar abernatskiy commented on August 29, 2024

The current version of the Python interface returns all zeros whenever the data from the simulator binary does not reach it. Since you report that simulator performs as it should, there are two possibilities - either the binary crashes at the last time step or there is some kind of communication error. Communication error is more likely, because Python versions handle subprocesses in a slightly different ways and the code has not been thoroughly debugged to run on all versions in the same way. Which version runs on which machine? Start by ensuring that the machine on which the code fails runs the same version of Python as the one on which it works well.

from pyrosim.

Alobal123 avatar Alobal123 commented on August 29, 2024

So I tried it on all the versions of python I have installed and did not make any difference.
I have python 3.6.5 on both machines and one works and one does not.

from pyrosim.

ccappelle avatar ccappelle commented on August 29, 2024

It is probably an issue with some of the hard-coded constraints in the C++ code. One common one is the length of the directory path is too long. Because drawstuff (ODE's simple rendering library) needs the path to the textures and this is stored in a char array with a hard coded length. However it could be something else so I suggest setting the debug parameter to true when you initialize the simulator.

sim = pyrosim.Simulator(debug=True)

This should give a clearer picture of what is failing.

from pyrosim.

Related Issues (9)

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.