-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add pedestrian motorbike model #767
Conversation
@@ -90,10 +90,15 @@ class _HistoryRow(NamedTuple): | |||
def _decode_vehicle_type(self, vehicle_type): | |||
# Options from NGSIM and INTERACTION currently include: | |||
# 1=motorcycle, 2=auto, 3=truck, 4=pedestrian/bicycle | |||
# But we don't yet have glb models for 1 and 4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just went ahead and used the new types in our TrafficHistoryProvider since that's what spurred the issue to be created.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
@@ -114,6 +114,7 @@ traffic_histories.pkl | |||
|
|||
# but keep model assets | |||
!**/models/*.glb | |||
*.blend1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*.blend1 files are automatically generated backup files for *.blend files
Were you also going to add |
nope, in the meeting after standup, it was decided urdf files aren't needed. We currently don't use different urdf for different vehicle types. Also having more urdf increases complexity of modeling physics in my understanding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work.
We will need to fix test observations. |
right sorry I missed that. Also were we going to disable test_notebook test? |
I will try fixing it by explicitly installing |
d79fb8e
to
ff9308c
Compare
f047919
to
50763be
Compare
@@ -134,16 +138,19 @@ def sample_vehicle_pos(lens, rgb, ogm, drivable_area, vehicle_pos): | |||
|
|||
# Check if vehicles are rendered at the expected position | |||
# RGB | |||
tolerance = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Gamenot is it fine to have a small tolerance here when checking rgb, ogm and drivable_grid_map? The motorbike model width is smaller than other vehicles so might need some tolerance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine. Just note that this tolerance growth formula is (2n+1)^2. (i.e. 1, 9, 25, 49, 81, ...)
9c38e81
to
2c6a81a
Compare
Added models and glb for motorcycle and pedestrian.
Also rescaled other vehicles

closes #756 #755