Skip to content

Comments

Rebase on upstream main and default anisotropic_filtering to False#8

Open
BridgerB wants to merge 43 commits intocommaai:patch_anisotropicfrom
BridgerB:patch_anisotropic
Open

Rebase on upstream main and default anisotropic_filtering to False#8
BridgerB wants to merge 43 commits intocommaai:patch_anisotropicfrom
BridgerB:patch_anisotropic

Conversation

@BridgerB
Copy link

Rebased on latest upstream main to resolve merge conflicts for metadriverse#749

Changed anisotropic_filtering default from True to False to fix CI.

maxime-desroches and others added 30 commits September 1, 2024 20:46
* US Merge and splits for ramps

* Format

* Fix lines

* Format
* fix ramp rendering

* fix physics for ramp

* format

* fix test

* deprecate opendrive API as we now using SUMO netconverter

* format
To avoid a special case where the map is too large, adjust the scaling automatically in TopDownRenderer
* non-breaking change

* non-breaking change

* non-breaking changes: Introduce PedestrianBoundingBox

* non-breaking changes

* non-breaking changes

* Fix a bug in cyclist: The object shape is wrong.

* non-breaking changes: Introduce CyclistBoundingBox

* non-breaking changes: Introduce VaryingDynamicsBoundingBoxVehicle (TODO: Semantics.BUS.label is not used)

* non-breaking changes: Introduce drive_in_real_env_with_bounding_box.py (example file)

* Fix a bug in ReplayPolicy: The object is now set_static(True) so it won't be affected by gravity or collision.

* non-breaking change

* non-breaking changes: implement generate_distinct_rgb_values (for instance level colors?)

* Introduce config "use_bounding_box" in ScenarioEnv, impl the proper config postprocessing

* non-breaking changes: Introduce ScenarioAgentManager

* non-breaking changes: Update Instance Camera

* non-breaking changes: fix a bug

* Update scenario_traffic_manager.py: Use Cyc/PedBoundingBox, deal with use_bounding_box

* Update scenario_traffic_manager.py: add w/l/h info into vehicle_config before spawning it.

* non-breaking changes: Update scenario_map_manager.py, add w/l/h to vehicle config (traffic agent)

* Update get_vehicle_type, remove randomization of vehicle type in ScenarioEnv

* Default even_sample_vehicle_class=False. (remove randomization of veh type in ScenarioEnv)

* non-breaking change

* Create new car model with different scale and shape, if self.config['scale'] is set.

* Deprecate even_sample_vehicle_class in ScenarioEnv

* Allow to update the tire_scale if config['scale'] is set in ScenarioEnv

* Fix a bug in ScenarioMapManager: for Nuscene's data, the width / length is wrong (error from source data, not our problem).

* format

* Minor update: change API for camera.get_image
* revert the bug causing tire-scale code

* Hot fix the bug

* Allow to config "set_static", default to False to fix the bug of flickerring visualization.
* Introduce ScenarioOnlineDataManager and ScenarioOnlineEnv

* Prepare the ScenarioOnlineEnv

* revert the bug causing tire-scale code

* Hot fix the bug

* Allow to config "set_static", default to False to fix the bug of flickerring visualization.

* add a warning

* Introduce an example script

* Fix the map bug: in metadrive, all SD should be centralized.
* Update to 0.4.3

* Update to 0.4.3
Fix issue that car can't full stop if brake=-1
metadriverse#788)

Fix a bug caused by CUDA image caching: when setting new cam HPR/Pos, cuda image is not updated.
* Introduce a test script for determinism

* Introduce a test script for determinism

* Find a good test threshold for step=50 rollout
* Clean code

* clean README

* Add a simgen render notebook

* Add simgenrender example

* Up

* Fix

* update

* Fix

* Trying to fix test by using smaller depth image

* format
* upgrade to support mac

* upgrade to support mac

* upgrade to support mac

* fix semantic cam

* add an empty line to kick off test again

---------

Co-authored-by: Quanyi Li <quanyili0057@gmail.com>
Co-authored-by: pengzhenghao <pzh@cs.ucla.edu>
* Update README.md

* Update README.md

---------

Co-authored-by: Zhenghao Peng <pzh@cs.ucla.edu>
* a new depth camera is implemented to use the depth test!

* add installation trouble shooting

* add message

* use compute shader only for cuda

* new feature tested with cuda windows

* depth camera is tested on all platforms, let's restore the test

* update readme

* fix ramp bug

* format

* not run make video
* update fov config
add collect_sensors.py

* fix magic number

* camera mask for debugging drawer

* workable version

* revert camera fov

* add example

* delete debug example

* add test

* add point cloud to it

* update doc and readme

* fix simgen test

* remove check for duplicated sensor

* format

* don not test simgen

---------

Co-authored-by: Alan <fenglan18@outlook.com>
* allow large terrain

* adjust tex ratio

* by default 2048 terrain size

* support cross walk

* test map culling

* add perf count

* macos test

* new shader

* fix shading

* fix render pipe

* tex splatting

* fix

* final version

* format

* fix mac bug

* fix mac bug

* fix semantic

* allow show sensor

* format
* adjust shader for lane line rendering

* add multi sample

* use 1024 for scenarioEnv
* new traffic light implementation

* add test for checking lidar

* add test and test success

* format
metadriverse#807)

Update the multigoal environment: 1) remove visualization to native destination and waypoints, 2) migrate the "MultiGoalIntersectionEnvWrapped" into "MultiGoalIntersectionEnv"
* remove seaborn

* format

* Fix

* remove

* fix

* format

* Fix a test

* fix bug

* fix

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
* dont force pygame

* format

* fix test

* fix test

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
…etadriverse#720) (metadriverse#811)

* support Python 3.12

* add matrix support for 3.12 python tests

* add workflow_dispatch

* pin ray 2.24.0

* pin ray=2.24.0

* cancel ray from requirement

* cancel ray installation from workflow

* remove useless distutil code

* redo the merge with main

* fix doc coverage

* sync ipynb to this repo

---------

Co-authored-by: BBBmau <alvarez.mauriciotm@gmail.com>
Co-authored-by: Quanyi Li <quanyili0057@gmail.com>
QuanyiLi and others added 13 commits February 22, 2025 07:54
* Allow config['num_scenarios']=-1

* Allow config['num_scenarios']=-1
* Prepare a script to reproduce MultiGoal env wrong terrain

* format

* Add more stuff to be cleared when terrain.destroy() (suggested by Github copilot..)

* Minor fix

* Fix the terrain bug: we have an irresponsible assertion on the drivable_area

* Fix bug in terrain: if drivable area is not set, assume the whole region is drivable area and set Z to terrain height

* Finish test

* Format
* remove scipy in point cloud lidar

* format

---------

Co-authored-by: pengzhenghao <pzh@cs.ucla.edu>
…rse#754) (metadriverse#812)

* remove scipy

* Fix import to scipy, but just curious if that will impact efficiency of get_rgb_array_cpu in PointCloudLidar

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
* remove upper bound of python

* fix bug of gltf

* remove panda3d-gltf-1.x
* Implemeted a basic traffic mode

* Format
* Implemented a variant of ReplayEgoCarPolicy called "WaypointPolicy", which allows on-line modification of position, heading, velocity, and angular velocity of the ego car.

* Formatted the files

* Update the after_step of MultiGoalIntersectionNavigationManager to take args and kwawrgs(without any actual effect though)

* Formatting

* Fix the argument passing by enforcing a method signature checker for BaseEngine.after_step(). Now, only managers whose "after_step()" takes args and kwargs will have those passed into.

* Formatting

* Revert certain changes

* format

* Waypoint policy in ego coordinates implemented.

* Updated formulation detail

* Test added

* Remove uneeded file

* Updated ExampleManager

* Formatted the files

* No cubic splint

* Formatted the files

* args, kwargs update

* args, kwargs update

* Maybe relax the mem leak a little bit?

* Remove not related code vectorized.py

* Roll back a memory leak test

* Reformat the waypoint policy unit test, and IT DOESN'T TEST THE CLOSED-LOOP YET!

* Implement the WaypointPolicy

* Revert some changes

* Finish the unit test for WaypointPolicy/Env

* Add some TODO. Please fix @Weizhen

* Fix bugs

* rename and fix

---------

Co-authored-by: pengzhenghao <pzh@cs.ucla.edu>
… for static fields (metadriverse#837)

Fix minor bug: Use class instead of instance for static fields

In `get_number_summary`, a few static fields and functions were being accessed from an instance of ScenarioDescription rather than the class.
* force set store_map=False for ScenarioOnlineEnv

* format
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.

10 participants