Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SepMJ opened this issue Mar 20, 2023 · 1 comment
Open

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

SepMJ opened this issue Mar 20, 2023 · 1 comment

Comments

@SepMJ
Copy link

SepMJ commented Mar 20, 2023

The command is:
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/seed=7.csv --log-dir logs/ --make-maps --map-dir habitat_maps/ --make-plots \

Traceback (most recent call last):
File "src/scripts/eval_and_vis_habitat.py", line 169, in
main()
File "src/scripts/eval_and_vis_habitat.py", line 99, in main
map_height=200,
File "/home/duansh/rosxhab/catkin_ws/src/ros_x_habitat/src/evaluators/habitat_evaluator.py", line 125, in evaluate_and_get_maps
observations_per_action = self.env.reset()
File "/home/duansh/anaconda3/envs/rosxhab2/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/home/duansh/rosxhab/catkin_ws/src/ros_x_habitat/src/envs/habitat_rlenv.py", line 73, in reset
return self._env.reset()
File "/home/duansh/rosxhab/catkin_ws/src/ros_x_habitat/src/envs/physics_env.py", line 176, in reset
obj.motion_type = hsim.physics.MotionType.DYNAMIC
AttributeError: 'NoneType' object has no attribute 'motion_type'

I haven't found a solution. Can I ask if there is any way? Thank you

@ericchen321
Copy link
Owner

Hi @jiaomengzhang sorry about the late reply. I've been swamped by other projects lately.

I hope you've solved it but in case you haven't, looks like someone suggested had the same problem a solution here. I tried removing default.physics_config.json and was able to reproduce the error. You can download the file from this link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants