Git Product home page Git Product logo

Comments (8)

ericchen321 avatar ericchen321 commented on July 21, 2024

Hey @BoLeiChen , I hope you've fixed the problem but if you haven't:

The error here says habitat_sim.physics is a null object. Since the module should be in <path to your conda env>/lib/python3.6/site-packages/habitat_sim/physics.py, I guess something is off with your Habitat Sim installation. I just updated the installation instructions, and for Habitat Sim specifically I'm now suggesting to install from conda as opposed to by building from source. Hope it helps.

Sorry for the late reply. I've been busy with other stuff for the past month.

from ros_x_habitat.

frischzenger avatar frischzenger commented on July 21, 2024

I've also meeting this problem, have you solved it?

from ros_x_habitat.

frischzenger avatar frischzenger commented on July 21, 2024

Hey @BoLeiChen , I hope you've fixed the problem but if you haven't:

The error here says habitat_sim.physics is a null object. Since the module should be in <path to your conda env>/lib/python3.6/site-packages/habitat_sim/physics.py, I guess something is off with your Habitat Sim installation. I just updated the installation instructions, and for Habitat Sim specifically I'm now suggesting to install from conda as opposed to by building from source. Hope it helps.

Sorry for the late reply. I've been busy with other stuff for the past month.

i ve tried both install from source and conda install, both this error
I tested the physics env in habitat sim, it works fine,

from ros_x_habitat.

JulioPlaced avatar JulioPlaced commented on July 21, 2024

Same problem here. ROS agent not working with habitat and getting:

AttributeError: 'NoneType' object has no attribute 'motion_type'

(habitat installed using conda and habitat-sim seems to work properly)

from ros_x_habitat.

ericchen321 avatar ericchen321 commented on July 21, 2024

@JulioPlaced I ran the same command the OP used:

python src/scripts/eval_and_vis_habitat.py --input-type rgbd --model-path data/checkpoints/v2/gibson-rgbd-best.pth --task-config configs/setting_4_configs/pointnav_rgbd-mp3d.yaml --episode-id -1 --seed-file-path seeds/2_seeds.csv --log-dir logs --make-maps --map-dir maps --make-plots --plot-dir plots

But I didn't get the error. From your error message I can tell PhysicsEnv.rigid_obj_mgr.get_object_by_handle() returned a NontType object, though it should've returned an object of type habitat_sim._ext.habitat_sim_bindings.ManagedBulletRigidObject which contains motion_type attribute. So probably something went wrong inside that function?

FYI 1) if I take a step back and print out obj_handles I can see

['locobot_merged_:0000']

; 2) I built Habitat Sim 0.2.0 from source but I guess you installed the same version from conda. I'm not expecting any discrepency between source/conda build but considering the fact that get_object_by_handle() resides in Habitat Sim and that method might be where the problem comes from, I may try the conda build as well.

from ros_x_habitat.

JulioPlaced avatar JulioPlaced commented on July 21, 2024

I got this error while running python src/scripts/roam_with_joy.py but I guess the problem is equivalent as it is related to not correctly getting the object habitat_sim.
Habitat-sim physics seem to work fine when running habitat examples. So I don't know why this problem is appearing. Also locobot merged was handled successfully in my case too.
Let me try compile habitat 0.2.0 from source instead of using conda, just in case.

from ros_x_habitat.

SepMJ avatar SepMJ commented on July 21, 2024

I've also meeting this problem, have you solved it?

from ros_x_habitat.

frischzenger avatar frischzenger commented on July 21, 2024

I've also meeting this problem, have you solved it?

you need to download default.physics_config.json to data directory

from ros_x_habitat.

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.