Skip to content

Commit

Permalink
Introduce sleep in the pose controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nlyubova authored Feb 10, 2018
1 parent 372f512 commit 2bb282b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions naoqi_pose/nodes/pose_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def __init__(self):

self.connectNaoQi()

self.rate = 10

# store the number of joints in each motion chain and collection, used for sanity checks
self.collectionSize = {}
for collectionName in ['Head', 'LArm', 'LLeg', 'RLeg', 'RArm', 'Body', 'BodyJoints', 'BodyActuators']:
Expand Down Expand Up @@ -435,6 +437,8 @@ def run(self):
print e
rospy.signal_shutdown("No NaoQI available anymore")

self.rate.sleep()

if __name__ == '__main__':

controller = PoseController()
Expand Down

0 comments on commit 2bb282b

Please sign in to comment.