Skip to content

Commit

Permalink
Added behaviors for returning the frog
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetric committed Feb 8, 2017
1 parent b2cc4ed commit 4af4bd9
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Adore gestures/Adore gestures.pml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<BehaviorDescription name="behavior" src="Pokusajmo ponovo" xar="behavior.xar" />
<BehaviorDescription name="behavior" src="Assist (left)" xar="behavior.xar" />
<BehaviorDescription name="behavior" src="Assist (right)" xar="behavior.xar" />
<BehaviorDescription name="behavior" src="Return (Frog, left)" xar="behavior.xar" />
<BehaviorDescription name="behavior" src="Return (Frog, right)" xar="behavior.xar" />
<BehaviorDescription name="behavior" src="Return (Drinking, left)" xar="behavior.xar" />
</BehaviorDescriptions>
<Dialogs />
<Resources>
Expand Down
129 changes: 129 additions & 0 deletions Adore gestures/Return (Frog, left)/behavior.xar
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ChoregrapheProject xmlns="http://www.aldebaran-robotics.com/schema/choregraphe/project.xsd" xar_version="3">
<Box name="root" id="-1" localization="8" tooltip="Root box of Choregraphe&apos;s behavior. Highest level possible." x="0" y="0">
<bitmap>media/images/box/root.png</bitmap>
<script language="4">
<content>
<![CDATA[]]>
</content>
</script>
<Input name="onLoad" type="1" type_size="1" nature="0" inner="1" tooltip="Signal sent when diagram is loaded." id="1" />
<Input name="onStart" type="1" type_size="1" nature="2" inner="0" tooltip="Box behavior starts when a signal is received on this input." id="2" />
<Input name="onStop" type="1" type_size="1" nature="3" inner="0" tooltip="Box behavior stops when a signal is received on this input." id="3" />
<Output name="onStopped" type="1" type_size="1" nature="1" inner="0" tooltip="Signal sent when box behavior is finished." id="4" />
<Timeline enable="0">
<BehaviorLayer name="behavior_layer1">
<BehaviorKeyframe name="keyframe1" index="1">
<Diagram>
<Box name="Timeline" id="1" localization="8" tooltip="This box is empty (contains a single motion layer with no motor position&#x0A;defined in it) and should be used to create any animation you would like." x="399" y="162">
<bitmap>media/images/box/movement/move.png</bitmap>
<script language="4">
<content>
<![CDATA[]]>
</content>
</script>
<Input name="onLoad" type="1" type_size="1" nature="0" inner="1" tooltip="Signal sent when diagram is loaded." id="1" />
<Input name="onStart" type="1" type_size="1" nature="2" inner="0" tooltip="Box behavior starts when a signal is received on this input." id="2" />
<Input name="onStop" type="1" type_size="1" nature="3" inner="0" tooltip="Box behavior stops when a signal is received on this input." id="3" />
<Output name="onStopped" type="1" type_size="1" nature="1" inner="0" tooltip="Signal sent when box behavior is finished." id="4" />
<Timeline enable="1" fps="25" start_frame="1" end_frame="-1" size="70">
<BehaviorLayer name="behavior_layer1">
<BehaviorKeyframe name="keyframe1" index="1">
<Diagram />
</BehaviorKeyframe>
</BehaviorLayer>
<ActuatorList model="nao">
<ActuatorCurve name="value" actuator="HeadPitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="2.1949" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="HeadYaw" recordable="0" mute="0" unit="0">
<Key frame="24" value="2.28279" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LAnklePitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="-20.2175" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LAnkleRoll" recordable="0" mute="0" unit="0">
<Key frame="24" value="0" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LElbowRoll" recordable="0" mute="0" unit="0">
<Key frame="24" value="-34.9785" />
<Key frame="70" value="-50.1" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LElbowYaw" recordable="0" mute="0" unit="0">
<Key frame="24" value="-15.6471" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LHand" recordable="0" mute="0" unit="1">
<Key frame="24" value="0.00440001" />
<Key frame="44" value="0.74" />
<Key frame="48" value="0.74" />
<Key frame="70" value="0.6" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LHipPitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="-25.5741" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LHipRoll" recordable="0" mute="0" unit="0">
<Key frame="24" value="-0.612832" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LHipYawPitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="0" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LKneePitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="40.0762" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LShoulderPitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="8.7" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LShoulderRoll" recordable="0" mute="0" unit="0">
<Key frame="24" value="7.55628" />
<Key frame="70" value="45.8" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="LWristYaw" recordable="0" mute="0" unit="0">
<Key frame="24" value="13.9724" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RAnklePitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="-19.8611" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RAnkleRoll" recordable="0" mute="0" unit="0">
<Key frame="24" value="0" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RElbowRoll" recordable="0" mute="1" unit="0">
<Key frame="24" value="56.8683" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RElbowYaw" recordable="0" mute="1" unit="0">
<Key frame="24" value="78.3091" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RHand" recordable="0" mute="1" unit="1">
<Key frame="24" value="0.2496" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RHipPitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="-25.6668" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RHipRoll" recordable="0" mute="0" unit="0">
<Key frame="24" value="0.705531" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RHipYawPitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="0" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RKneePitch" recordable="0" mute="0" unit="0">
<Key frame="24" value="39.5537" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RShoulderPitch" recordable="0" mute="1" unit="0">
<Key frame="24" value="82.8843" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RShoulderRoll" recordable="0" mute="1" unit="0">
<Key frame="24" value="-13.8014" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RWristYaw" recordable="0" mute="1" unit="0">
<Key frame="24" value="1.40386" />
</ActuatorCurve>
</ActuatorList>
</Timeline>
</Box>
<Link inputowner="1" indexofinput="2" outputowner="0" indexofoutput="2" />
<Link inputowner="0" indexofinput="4" outputowner="1" indexofoutput="4" />
</Diagram>
</BehaviorKeyframe>
</BehaviorLayer>
</Timeline>
</Box>
</ChoregrapheProject>
64 changes: 64 additions & 0 deletions Adore gestures/Return (Frog, right)/behavior.xar
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ChoregrapheProject xmlns="http://www.aldebaran-robotics.com/schema/choregraphe/project.xsd" xar_version="3">
<Box name="root" id="-1" localization="8" tooltip="Root box of Choregraphe&apos;s behavior. Highest level possible." x="0" y="0">
<bitmap>media/images/box/root.png</bitmap>
<script language="4">
<content>
<![CDATA[]]>
</content>
</script>
<Input name="onLoad" type="1" type_size="1" nature="0" inner="1" tooltip="Signal sent when diagram is loaded." id="1" />
<Input name="onStart" type="1" type_size="1" nature="2" inner="0" tooltip="Box behavior starts when a signal is received on this input." id="2" />
<Input name="onStop" type="1" type_size="1" nature="3" inner="0" tooltip="Box behavior stops when a signal is received on this input." id="3" />
<Output name="onStopped" type="1" type_size="1" nature="1" inner="0" tooltip="Signal sent when box behavior is finished." id="4" />
<Timeline enable="0">
<BehaviorLayer name="behavior_layer1">
<BehaviorKeyframe name="keyframe1" index="1">
<Diagram>
<Box name="Timeline" id="1" localization="8" tooltip="This box is empty (contains a single motion layer with no motor position&#x0A;defined in it) and should be used to create any animation you would like." x="567" y="325">
<bitmap>media/images/box/movement/move.png</bitmap>
<script language="4">
<content>
<![CDATA[]]>
</content>
</script>
<Input name="onLoad" type="1" type_size="1" nature="0" inner="1" tooltip="Signal sent when diagram is loaded." id="1" />
<Input name="onStart" type="1" type_size="1" nature="2" inner="0" tooltip="Box behavior starts when a signal is received on this input." id="2" />
<Input name="onStop" type="1" type_size="1" nature="3" inner="0" tooltip="Box behavior stops when a signal is received on this input." id="3" />
<Output name="onStopped" type="1" type_size="1" nature="1" inner="0" tooltip="Signal sent when box behavior is finished." id="4" />
<Timeline enable="1" fps="25" start_frame="1" end_frame="-1" size="74">
<BehaviorLayer name="behavior_layer1">
<BehaviorKeyframe name="keyframe1" index="1">
<Diagram />
</BehaviorKeyframe>
</BehaviorLayer>
<ActuatorList model="">
<ActuatorCurve name="value" actuator="RElbowRoll" recordable="1" mute="0" unit="0">
<Key frame="25" value="29.5" />
<Key frame="74" value="68.1" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RHand" recordable="1" mute="0" unit="1">
<Key frame="45" value="0.59" />
<Key frame="48" value="0.59" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RShoulderPitch" recordable="1" mute="0" unit="0">
<Key frame="25" value="8.7" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RShoulderRoll" recordable="1" mute="0" unit="0">
<Key frame="25" value="-1.5" />
<Key frame="74" value="-46.7" />
</ActuatorCurve>
<ActuatorCurve name="value" actuator="RWristYaw" recordable="1" mute="0" unit="0">
<Key frame="25" value="-17.9" />
</ActuatorCurve>
</ActuatorList>
</Timeline>
</Box>
<Link inputowner="1" indexofinput="2" outputowner="0" indexofoutput="2" />
<Link inputowner="0" indexofinput="4" outputowner="1" indexofoutput="4" />
</Diagram>
</BehaviorKeyframe>
</BehaviorLayer>
</Timeline>
</Box>
</ChoregrapheProject>
12 changes: 12 additions & 0 deletions Adore gestures/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,17 @@
</names>
<permissions/>
</behaviorContent>
<behaviorContent path="Return (Frog, left)">
<nature>interactive</nature>
<permissions/>
</behaviorContent>
<behaviorContent path="Return (Frog, right)">
<nature>interactive</nature>
<permissions/>
</behaviorContent>
<behaviorContent path="Return (Drinking, left)">
<nature>interactive</nature>
<permissions/>
</behaviorContent>
</contents>
</package>

0 comments on commit 4af4bd9

Please sign in to comment.