Giter VIP home page Giter VIP logo

Comments (11)

fernandozuher avatar fernandozuher commented on May 30, 2024 2

Thanks for your quick reply and kindness, @omichel. I will look better the files structure/code and try to understand how it is done. Then I come back here with a proper amount of questions. Thanks again.

from naoqisim.

wbadry avatar wbadry commented on May 30, 2024 2

I will try to set an example showing how to do so.

from naoqisim.

omichel avatar omichel commented on May 30, 2024

It seems to be a problem on the simulator-sdk side (which includes the naoqi emulation). Unfortunately, we cannot help on this as this is proprietary binary code belonging to SoftBank Robotics. You should probably report the problem to SoftBank Robotics.

from naoqisim.

fernandozuher avatar fernandozuher commented on May 30, 2024

Hello, @AayuStark007 and @omichel.

@costashatz in: https://github.com/costashatz/nao_gazebo

...simulates NAO in Gazebo through NAOqi Simulator SDK. He also had the same problem about walking:
costashatz/nao_gazebo#1

...which seems to be fixed in this commit: costashatz/nao_gazebo@fc6488a
and video: https://www.youtube.com/watch?v=xPg7caI26Z4

I tried all sort of programming/computer witchcraft to fix that walking problem in Webots: googling the errors,
adapting the commit from @costashatz to this repository, updating the naoqi-sdk version used in this repository (2.1.4.1) to newer versions, using different versions of Webots (from R2018a) and Choregraphe... Unfortunately with no success. =/

Since SoftBank Robotics and Webots don't support NAOqi in Webots anymore: https://cyberbotics.com/doc/guide/nao#naoqi-and-choregraphe

...I was thinking that problem may be fixed through adapting this current repository to use the last naoqi-sdk, which could be the python-sdk 2.8.6.23 or cplusplus-sdk (2.8.5); as of this writing. I can do that, but I would need help to understand the structure written in the controller files located in naoqisim controller: naoqisim.cpp, Nao.cpp, ...

If I can help, let me know.

from naoqisim.

omichel avatar omichel commented on May 30, 2024

@fernandozuher: you are very welcome to help. We will be happy to answer your questions if you need help to understand the naoqisim controller source code.

from naoqisim.

williamnavaraj avatar williamnavaraj commented on May 30, 2024

Not just motion. Any action with respect to FRAME_ROBOT or FRAME_WORLD is not working and returns NaN. getRobotPosition(), getTransform("Torso",1,True) and getTransform("Torso",2,True) does not work.

from naoqisim.

alvimpaulo avatar alvimpaulo commented on May 30, 2024

I have yet to figure out why, but is seems that running a specific choregraph behavior made the robot able to walk through naoqi at least once. However, I have tried the same procedure other times and it doesn't seem to work anymore. Does something change when you upload a behavior to the robot for the first time?

from naoqisim.

alvimpaulo avatar alvimpaulo commented on May 30, 2024

After some tests, I can make the robot move once each computer restart. The first time it launches the simulator, it works as expected. However if I restart the simulation for any reason, it seems to try to restart the HAL and gives an error of already having a existing HAL running. Whenever I get this error, I can not make the robot move. Is there some code that is run when the HAL is stated the first time but not when it is restarting? @omichel

from naoqisim.

omichel avatar omichel commented on May 30, 2024

As far as I remember we had to manually kill any HAL process in order to be able to restart a simulation. For some reason the HAL process doesn't always quit properly. This software is unfortunately no under our control and is not open source. It comes from the SDK provided by softbank robotics.

from naoqisim.

alvimpaulo avatar alvimpaulo commented on May 30, 2024

I imagined so. Even after searching and killing all processes related with naoqi, hal and dcm, the robot can only move once per restart. Even deleting the shared memory files did not solve it. Anyway, more searching to do. Thanks for the response.

from naoqisim.

fernandozuher avatar fernandozuher commented on May 30, 2024

Thanks for your quick reply and kindness, @omichel. I will look better the files structure/code and try to understand how it is done. Then I come back here with a proper amount of questions. Thanks again.

@omichel and @wbadry, I refactored the naoqisim controller in order to understand and update it to the last naoqi-sdk version. The full message can be found in the issue #10.

from naoqisim.

Related Issues (8)

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.