mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Commented out follow_controller code since it is not yet ready
This commit is contained in:
parent
63a3296007
commit
cc5fa475b3
@ -25,14 +25,14 @@ from ros_arduino_python.arduino_sensors import *
|
||||
from ros_arduino_msgs.srv import *
|
||||
from ros_arduino_python.base_controller import BaseController
|
||||
from ros_arduino_python.servo_controller import Servo, ServoController
|
||||
from ros_arduino_python.follow_controller import FollowController
|
||||
#from ros_arduino_python.follow_controller import FollowController
|
||||
from ros_arduino_python.joint_state_publisher import JointStatePublisher
|
||||
from geometry_msgs.msg import Twist
|
||||
import os, time
|
||||
import thread
|
||||
from math import radians
|
||||
|
||||
controller_types = { "follow_controller" : FollowController }
|
||||
#controller_types = { "follow_controller" : FollowController }
|
||||
|
||||
class ArduinoROS():
|
||||
def __init__(self):
|
||||
@ -167,6 +167,12 @@ class ArduinoROS():
|
||||
|
||||
# Configure each servo
|
||||
for name, params in joint_params.iteritems():
|
||||
try:
|
||||
if params['continuous'] == True:
|
||||
self.device.joints[name] = ContinuousServo(self.device, name)
|
||||
else:
|
||||
self.device.joints[name] = Servo(self.device, name)
|
||||
except:
|
||||
self.device.joints[name] = Servo(self.device, name)
|
||||
|
||||
# Display the joint setup on the terminal
|
||||
|
Loading…
x
Reference in New Issue
Block a user