mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
add aikit-320 ros
This commit is contained in:
parent
383a82f5e6
commit
2d590cc13c
1 changed files with 4 additions and 2 deletions
|
|
@ -152,9 +152,11 @@ class MycobotTopics(object):
|
||||||
ma = MycobotAngles()
|
ma = MycobotAngles()
|
||||||
while not rospy.is_shutdown():
|
while not rospy.is_shutdown():
|
||||||
if self.mc:
|
if self.mc:
|
||||||
self.lock.acquire()
|
# self.lock.acquire()
|
||||||
|
lock = acquire("/tmp/mycobot_lock")
|
||||||
angles = self.mc.get_angles()
|
angles = self.mc.get_angles()
|
||||||
self.lock.release()
|
release(lock)
|
||||||
|
# self.lock.release()
|
||||||
if angles:
|
if angles:
|
||||||
ma.joint_1 = angles[0]
|
ma.joint_1 = angles[0]
|
||||||
ma.joint_2 = angles[1]
|
ma.joint_2 = angles[1]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue