Created
May 26, 2020 04:23
-
-
Save aaronchongth/2a905b28ecd79503c54be0dd5d5f99dc to your computer and use it in GitHub Desktop.
Running `pit_crew` `usage_examples.py`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaron@ws:~/workspaces/pitcrew_ws/src/traffic_editor/building_map_tools/pit_crew$ python3 usage_examples.py | |
Welcome to | |
( ( ( | |
)⧹ ))⧹ ) . ) ( )⧹ ) ( ( | |
(()/(()/` ) /( )⧹ (()/(( )⧹))( . | |
/(_)/(_)( )(_)) (((_) /(_))⧹ ((_)()⧹ ) | |
(_))(_))(_(_()) )⧹___(_))((_)_(())⧹_)() | |
| _ |_ _|_ _| (/ __| _ | __⧹ ⧹((_)/ / | |
| _/| | | | | (__| | _| ⧹ ⧹/⧹/ / | |
|_| |___| |_| ⧹___|_|_|___| ⧹_/⧹_/ | |
~ take a REST, and top-up your Fuel ~ | |
WARNING::pit_crew.build_and_update_cache():594: No pit_crew cache path given! Using default /home/aaron/.pit_crew/model_cache.json instead! | |
Cache directory does not exist! Creating it: /home/aaron/.pit_crew | |
Rebuilding cache... | |
Topping up Fuel (updating cache) from: https://fuel.ignitionrobotics.org/1.0/models | |
Fetching page: 1 | |
Fetching page: 2 | |
Fetching page: 3 | |
Fetching page: 4 | |
Fetching page: 5 | |
Fetching page: 6 | |
Fetching page: 7 | |
Fetching page: 8 | |
Fetching page: 9 | |
Fetching page: 10 | |
Fetching page: 11 | |
Fetching page: 12 | |
Fetching page: 13 | |
Fetching page: 14 | |
Fetching page: 15 | |
Fetching page: 16 | |
Fetching page: 17 | |
Fetching page: 18 | |
Fetching page: 19 | |
Fetching page: 20 | |
Fetching page: 21 | |
Fetching page: 22 | |
Fetching page: 23 | |
Fetching page: 24 | |
Fetching page: 25 | |
Fetching page: 26 | |
Fetching page: 27 | |
Fetching page: 28 | |
Fetching page: 29 | |
Fetching page: 30 | |
Fetching page: 31 | |
Fetching page: 32 | |
Fetching page: 33 | |
Fetching page: 34 | |
Fetching page: 35 | |
Fetching page: 36 | |
Fetching page: 37 | |
Fetching page: 38 | |
Fetching page: 39 | |
Writing to cache: /home/aaron/.pit_crew/model_cache.json | |
New models cached: 747 | |
WARNING::pit_crew.load_cache():548: No path given! Using /home/aaron/.pit_crew/model_cache.json instead! | |
Load success! | |
WARNING::pit_crew.load_cache():548: No path given! Using /home/aaron/.pit_crew/model_cache.json instead! | |
Load success! | |
WARNING::pit_crew.get_local_model_name_tuples():208: No local model path given! Using default /home/aaron/.gazebo/models/ instead! | |
ERROR::pit_crew.get_model_name_tuple():293: Could not parse model.config file! 'NoneType' object has no attribute 'find' | |
ERROR::pit_crew.get_model_name_tuple():293: Could not parse model.config file! XML or text declaration not at start of entity: line 2, column 0 | |
WARNING::pit_crew.get_local_model_name_tuples():208: No local model path given! Using default /home/aaron/.ignition/fuel/ instead! | |
WARNING::pit_crew.get_local_model_name_tuples():208: No local model path given! Using default /home/aaron/.gazebo/models/ instead! | |
ERROR::pit_crew.get_model_name_tuple():293: Could not parse model.config file! 'NoneType' object has no attribute 'find' | |
ERROR::pit_crew.get_model_name_tuple():293: Could not parse model.config file! XML or text declaration not at start of entity: line 2, column 0 | |
Here's up to 10 models we've retrieved! | |
[ModelNames(model_name='PR2', author_name='John Hsu'), | |
ModelNames(model_name='Round tin (base)', author_name='Jackie Kay'), | |
ModelNames(model_name='Kinect', author_name='Nate Koenig'), | |
ModelNames(model_name='Cinder Block', author_name='Cole Biesemeyer'), | |
ModelNames(model_name='Number4', author_name='Nate Koenig'), | |
ModelNames(model_name='Ladder 60 Degrees 1 Handrails ', author_name='Jackie Kay'), | |
ModelNames(model_name='Number6', author_name='Nate Koenig'), | |
ModelNames(model_name='Demo Joint Types', author_name='Shane Loretz'), | |
ModelNames(model_name='Scanse Sweep', author_name='Adam Naber'), | |
ModelNames(model_name='Gear Part', author_name='Nate Koenig')] | |
WARNING::pit_crew.get_model_name_tuple():284: Should have passed in the model.config file! Parsing file: /home/aaron/.gazebo/models/gazebo/model.config | |
ModelNames(model_name='Gazebo', author_name='Nate Koenig') | |
WARNING::pit_crew.load_cache():548: No path given! Using /home/aaron/.pit_crew/model_cache.json instead! | |
Load success! | |
['openrobotics', 'chapulina'] | |
WARNING::pit_crew.load_cache():548: No path given! Using /home/aaron/.pit_crew/model_cache.json instead! | |
Load success! | |
[] | |
WARNING::pit_crew.load_cache():548: No path given! Using /home/aaron/.pit_crew/model_cache.json instead! | |
Load success! | |
[Models] | |
Amangupta | |
└─ start | |
CarnesT | |
└─ X1 Config 4 Test | |
EkinBear | |
└─ EdgarMineVirtualSTIXFull | |
Mingfei | |
└─ actor | |
OpenRobotics | |
└─ Ambulance | |
athackst | |
└─ bicycle | |
azeey | |
└─ X1 Config 1 | |
caguero | |
└─ Beer | |
chapulina | |
└─ Ambulance | |
dreamerql | |
└─ SSCI_X4_SENSOR_CONFIG_2 | |
german | |
└─ Bowl | |
iche033 | |
└─ Rescue Randy | |
mjcarroll | |
└─ Hokuyo URG04LX | |
nate | |
└─ Backpack | |
rahulbhadani | |
└─ Bumper | |
scpeters | |
└─ Double pendulum with base | |
stan911 | |
└─ EdgarMineVirtualSTIXFull | |
tmarkmann | |
└─ clf_walls | |
WARNING::pit_crew.build_and_update_cache():594: No pit_crew cache path given! Using default /home/aaron/.pit_crew/model_cache.json instead! | |
Load success! | |
Cache found! Model count: 747 | |
Updating cache... | |
Topping up Fuel (updating cache) from: https://fuel.ignitionrobotics.org/1.0/models | |
Fetching page: 1 | |
Cached model found! Halting Fuel traversal... | |
Writing to cache: /home/aaron/.pit_crew/model_cache.json | |
New models cached: 0 | |
WARNING::pit_crew.get_local_model_name_tuples():208: No local model path given! Using default /home/aaron/.gazebo/models/ instead! | |
ERROR::pit_crew.get_model_name_tuple():293: Could not parse model.config file! 'NoneType' object has no attribute 'find' | |
ERROR::pit_crew.get_model_name_tuple():293: Could not parse model.config file! XML or text declaration not at start of entity: line 2, column 0 | |
{'available': ['ambulance', 'gazebo', 'beer'], | |
'downloadable': [('desk', ['openrobotics']), | |
('cave corner 02 lights type a', ['openrobotics'])], | |
'missing': ['dragon', 'missingboi96']} | |
WARNING::pit_crew.download_model():450: No path given! Downloading to /home/aaron/.gazebo/models instead! | |
ERROR::pit_crew.download_model():504: Could not download gazebo! Model gazebo does not exist! | |
(False, None) | |
WARNING::pit_crew.download_model():450: No path given! Downloading to /home/aaron/.gazebo/models instead! | |
ERROR::pit_crew.download_model():504: Could not download Gazebo! [Errno 2] No such file or directory: '/home/aaron/.gazebo/models/Gazebo/LICENSE' | |
(False, None) | |
WARNING::pit_crew.download_model():450: No path given! Downloading to /home/aaron/.gazebo/models instead! | |
ERROR::pit_crew.download_model():504: Could not download Gazebo! [Errno 2] No such file or directory: '/home/aaron/.gazebo/models/Gazebo/LICENSE' | |
Traceback (most recent call last): | |
File "usage_examples.py", line 117, in <module> | |
pprint(pit_crew._construct_license(metadata)) | |
File "/home/aaron/workspaces/pitcrew_ws/src/traffic_editor/building_map_tools/pit_crew/pit_crew.py", line 513, in _construct_license | |
% (fuel_metadata_dict.get("license_name", ""), | |
AttributeError: 'NoneType' object has no attribute 'get' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment