-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5655 from jwnimmer-tri/tools-named_vector-defaults
Add lcm_vector_gen support for defaults; use it in Bicycle and Idm
- Loading branch information
Showing
11 changed files
with
189 additions
and
46 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
# The default values contained below are representative of a Cadillac SRX (from | ||
# Althoff & Dolan, 2014). | ||
element { | ||
name: "mass" | ||
doc: "mass" | ||
doc_units: "kg" | ||
default_value: "2278.0" | ||
} | ||
element { | ||
name: "lf" | ||
doc: "distance from the center of mass to the front axle" | ||
doc_units: "m" | ||
default_value: "1.292" | ||
} | ||
element { | ||
name: "lr" | ||
doc: "distance from the center of mass to the rear axle" | ||
doc_units: "m" | ||
default_value: "1.515" | ||
} | ||
element { | ||
name: "Iz" | ||
doc: "moment of inertia about the yaw-axis" | ||
doc_units: "kg m^2" | ||
default_value: "3210.0" | ||
} | ||
element { | ||
name: "Cf" | ||
doc: "cornering stiffness (front)" | ||
doc_units: "N / rad" | ||
default_value: "10.8e4" | ||
} | ||
element { | ||
name: "Cr" | ||
doc: "cornering stiffness (rear)" | ||
doc_units: "N / rad" | ||
default_value: "10.8e4" | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,51 @@ | ||
# The default values contained below are from: | ||
# https://en.wikipedia.org/wiki/Intelligent_driver_model | ||
element { | ||
name: "v_ref" | ||
doc: "desired velocity in free traffic" | ||
doc_units: "m/s" | ||
default_value: "10.0" | ||
} | ||
element { | ||
name: "a" | ||
doc: "max acceleration" | ||
doc_units: "m/s^2" | ||
default_value: "1.0" | ||
} | ||
element { | ||
name: "b" | ||
doc: "comfortable braking deceleration" | ||
doc_units: "m/s^2" | ||
default_value: "3.0" | ||
} | ||
element { | ||
name: "s_0" | ||
doc: "minimum desired net distance" | ||
doc_units: "m" | ||
default_value: "1.0" | ||
} | ||
element { | ||
name: "time_headway" | ||
doc: "desired time headway to vehicle in front" | ||
doc_units: "s" | ||
default_value: "0.1" | ||
} | ||
element { | ||
name: "delta" | ||
doc: "free-road exponent" | ||
doc_units: "dimensionless" | ||
default_value: "4.0" | ||
} | ||
element { | ||
name: "bloat_diameter" | ||
doc: "diameter of circle about the vehicle's pose that encloses its physical footprint" | ||
doc_units: "m" | ||
default_value: "4.5" | ||
# TODO(jadecastro): replace with vehicle geometry. | ||
} | ||
element { | ||
name: "distance_lower_limit" | ||
doc: "lower saturation bound on net distance to prevent near-singular IDM solutions" | ||
doc_units: "m" | ||
default_value: "1e-2" | ||
} |
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
Oops, something went wrong.