Pincer Attachment
How to use pincer attachment on platform2
Last updated
Was this helpful?
How to use pincer attachment on platform2
Last updated
Was this helpful?
Was this helpful?
def open():
self.pub.publish(Bool(True))
def close():
self.pub.publish(Bool(False))#!/usr/bin/env python3
import rospy
from std_msgs.msg import Bool
class Pincer:
""" Allows pincer to open and close """
def __init__(self):
self.pub = rospy.Publisher('/servo', Bool, queue_size=1)
def open(self):
self.pub.publish(Bool(True))
def close(self):
self.pub.publish(Bool(False))