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

Error when trying to collect data #7

Open
ShalamovRoman opened this issue Mar 25, 2019 · 1 comment
Open

Error when trying to collect data #7

ShalamovRoman opened this issue Mar 25, 2019 · 1 comment

Comments

@ShalamovRoman
Copy link

Hi! I'm trying to collect data using CARLA 0.8.4 and tutorial from readme, but collector raises exception.

Here are my logs

Traceback (most recent call last):
File "collect.py", line 483, in <module>
main()
File "collect.py", line 472, in main
collect(client, args)
File "collect.py", line 231, in collect
settings_module, args.debug)
File "collect.py", line 171, in reset_episode
player_target_transform, planner)
File "collect.py", line 141, in calculate_timeout
end_point.orientation.x, end_point.orientation.y, end_point.orientation.z])
File "/home/sergey/Projects/data-collector/carla/planner/planner.py", line 113, in get_shortest_path_distance
track_target, target_ori)
File "/home/sergey/Projects/data-collector/carla/planner/city_track.py", line 99, in compute_route
np.set_printoptions(edgeitems=3, infstr='inf', threshold=np.nan, linewidth=129)
File "/usr/lib/python3.7/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions
floatmode, legacy)
File "/usr/lib/python3.7/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict
raise ValueError("threshold must be numeric and non-NAN, try "
ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation

Can somebody explain what parameter I should specify instead of "threshold"?

@hofbi
Copy link

hofbi commented May 16, 2019

I faced the same issue running the data collector. I could get it working by changing threshold=np.nan to threshold=0 in your File "/home/sergey/Projects/data-collector/carla/planner/city_track.py", line 99, in compute_route np.set_printoptions(edgeitems=3, infstr='inf', threshold=np.nan, linewidth=129)

With this change I was at least able to run the data collector, but I didn't check in detail if another non-zero value would fit better.

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