Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jan Koniarik
schpin-robot
Commits
90693d7e
Commit
90693d7e
authored
Jun 11, 2018
by
Jan Koniarik
Browse files
moving okke robot from general package II
parent
e3f49668
Changes
1
Hide whitespace changes
Inline
Side-by-side
schpin_koke/src/Koke.hs
View file @
90693d7e
...
...
@@ -9,7 +9,7 @@ import Linear.V3
data
LegPos
=
RL
|
RR
|
FR
|
FL
deriving
Eq
;
tot
eTipPos
=
V3
100
0
0
kok
eTipPos
=
V3
100
0
0
femurOffset
=
V3
55
0
0
tibiaOffset
=
V3
70
0
0
legPose
::
LegPos
->
Pose
...
...
@@ -24,9 +24,9 @@ legPose pos = Pose (V3 (xval*20) (yval*20) 0) $ axisAngle zAxis ( angle * pi/180
FR
->
90
-
45
tibia
=
Part
{
model
=
scadModel
"tibia"
[
(
"tipOffset"
,
tot
eTipPos
)
]
[
"tibia.scad"
],
model
=
scadModel
"tibia"
[
(
"tipOffset"
,
kok
eTipPos
)
]
[
"tibia.scad"
],
collision_models
=
[
scadModel
"tibia_collision"
[(
"tipOffset"
,
tot
eTipPos
)]
[
"tibia.scad"
]
scadModel
"tibia_collision"
[(
"tipOffset"
,
kok
eTipPos
)]
[
"tibia.scad"
]
],
part_weight
=
Nothing
,
center_of_mass
=
Nothing
...
...
@@ -53,7 +53,7 @@ coxa = Part {
center_of_mass
=
Nothing
}
tot
eBody
legs
=
Body
$
Part
{
kok
eBody
legs
=
Body
$
Part
{
model
=
scadModel
"body"
[(
"positions"
,
map
(
pos
.
pose
)
legs
)]
[
"body.scad"
],
collision_models
=
[
scadModel
"body_collision_a"
[(
"positions"
,
map
(
pos
.
pose
)
legs
)]
[
"body.scad"
],
...
...
@@ -78,19 +78,19 @@ leg pos = Leg {
Link
"tibia"
tibiaOffset
tibia
yAxis
(
-
pi
)
(
pi
/
2
)
pi
50
100
8
],
tip
=
Tip
{
point
=
tot
eTipPos
point
=
kok
eTipPos
},
pose
=
legPose
pos
}
tot
e
::
Walker
tot
e
=
Walker
walker_name
legs
(
tot
eBody
legs
)
kok
e
::
Walker
kok
e
=
Walker
walker_name
legs
(
kok
eBody
legs
)
where
walker_name
=
"Tote"
legs
=
[
leg
RR
,
leg
RL
,
leg
FR
,
leg
FL
]
main
::
IO
()
main
=
do
mapM_
(
uncurry
renderSCAD
)
$
getSCAD
tot
e
mapM_
(
uncurry
renderSTL
)
$
getSTLRenderList
tot
e
writeXML
(
getURDF
tot
e
)
"urdf/
tot
e.urdf"
mapM_
(
uncurry
renderSCAD
)
$
getSCAD
kok
e
mapM_
(
uncurry
renderSTL
)
$
getSTLRenderList
kok
e
writeXML
(
getURDF
kok
e
)
"urdf/
kok
e.urdf"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment