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

Use separate bolt density #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def __init__(self, bolts_attached, steel_weights_added, plastic_weights_added, O
PLA_struct_density = 491 #Assumes a 20% infill
ABS_density = 1321
steel_density = 7847
bolt_density = 6730

#Initially, we assume that the whole body is filled with plastic.
mm_to_m = 1e-3
Expand Down Expand Up @@ -191,7 +192,7 @@ def __init__(self, bolts_attached, steel_weights_added, plastic_weights_added, O

#Add bolts
for bolt in bolts_attached:
i = cylinder_inertia([b_r,b_h], steel_density, com_pose(0,0,0, bolt_pos[bolt]))
i = cylinder_inertia([b_r,b_h], bolt_density, com_pose(0,0,0, bolt_pos[bolt]))
primitives.append(i)

#Add steel weights
Expand Down