Skip to content

Commit

Permalink
[Ninja][morphing demo] make temporaty mophing mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Dec 28, 2024
1 parent 3f17caf commit 6a492e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion robots/ninja/script/demos/four_mod_morphing_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
desire_joint.position = [0.0,0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
desire_att.pitch = 0
desire_att.roll = 0
desire_att.yaw = 0
elif demo_mode == 0: # V shape
rospy.loginfo('mode 0')
desire_joint.position = [0.0, -1.5,-0.7,0.0,1.4,-1.5,0.0]
Expand All @@ -37,7 +38,12 @@
desire_att.yaw = math.pi/2.0
elif demo_mode == 2: # circle
rospy.loginfo('mode 2')
desire_joint.position = [1.57,1.57,0.0,1.57,0.0,1.57,0.0]
desire_joint.position = [1.57,-1.2,0.0,-1.2,0.0,-1.2,0.0]
desire_att.yaw = math.pi/4
elif demo_mode == 3: # ?
rospy.loginfo('mode 3')
desire_joint.position = [1.57,-1.2,0.8,-1.2,0.0,-1.2,-0.7]
desire_att.yaw = math.pi/4
# elif demo_mode == 2: # mode model
# rospy.loginfo('mode 2')
# desire_joint.position = [0.0, half_pi, -1.5, 0.0, 0.0, half_pi]
Expand Down

0 comments on commit 6a492e2

Please sign in to comment.