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

Add pedestrian motorbike model #767

Merged
merged 17 commits into from
Apr 17, 2021
Merged

Conversation

JingfeiPeng
Copy link
Contributor

@JingfeiPeng JingfeiPeng commented Apr 14, 2021

Added models and glb for motorcycle and pedestrian.

image
image

Also rescaled other vehicles
image

closes #756 #755

@@ -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.
Copy link
Contributor

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.

Copy link
Contributor

@sah-huawei sah-huawei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

This was linked to issues Apr 14, 2021
@@ -114,6 +114,7 @@ traffic_histories.pkl

# but keep model assets
!**/models/*.glb
*.blend1
Copy link
Contributor Author

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

@sah-huawei
Copy link
Contributor

Were you also going to add .urdf models for physics?

@JingfeiPeng
Copy link
Contributor Author

Were you also going to add .urdf models for physics?

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

Copy link
Collaborator

@Gamenot Gamenot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work.

@Gamenot
Copy link
Collaborator

Gamenot commented Apr 16, 2021

We will need to fix test observations.

@JingfeiPeng
Copy link
Contributor Author

JingfeiPeng commented Apr 16, 2021

We will need to fix test observations.

right sorry I missed that. Also were we going to disable test_notebook test?

@Gamenot
Copy link
Collaborator

Gamenot commented Apr 16, 2021

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 ipykernel.

@JingfeiPeng JingfeiPeng force-pushed the add_pedestrian_motorbike_model branch from d79fb8e to ff9308c Compare April 16, 2021 18:33
@JingfeiPeng JingfeiPeng force-pushed the add_pedestrian_motorbike_model branch from f047919 to 50763be Compare April 17, 2021 01:15
@@ -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
Copy link
Contributor Author

@JingfeiPeng JingfeiPeng Apr 17, 2021

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

Copy link
Collaborator

@Gamenot Gamenot Apr 17, 2021

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, ...)

@JingfeiPeng JingfeiPeng force-pushed the add_pedestrian_motorbike_model branch from 9c38e81 to 2c6a81a Compare April 17, 2021 02:12
@JingfeiPeng JingfeiPeng merged commit c071d53 into develop Apr 17, 2021
@JingfeiPeng JingfeiPeng deleted the add_pedestrian_motorbike_model branch April 17, 2021 18:39
This was referenced Apr 17, 2021
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

Successfully merging this pull request may close these issues.

Pedestrian model Model for two wheel vehicles
3 participants