Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ros handler #89

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/lib/handlers/ROS/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ltlmop_map.world
*.png
307 changes: 0 additions & 307 deletions src/lib/handlers/ROS/RosActuatorHandler.py

This file was deleted.

6 changes: 4 additions & 2 deletions src/lib/handlers/ROS/RosDriveHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""

from math import sin, cos
import sys

import lib.handlers.handlerTemplates as handlerTemplates

Expand All @@ -21,13 +22,14 @@ def __init__(self, executor, shared_data,d=0.6):
"""

try:
self.loco = executor.hsub.getHandlerInstanceByType(handlerTemplates.LocomotionCommanHandler)
self.loco = executor.hsub.getHandlerInstanceByType(handlerTemplates.LocomotionCommandHandler)
self.coordmap = executor.hsub.coordmap_lab2map
except NameError:
print "(DRIVE) Locomotion Command Handler not found."
print >>sys.__stdout__, "(DRIVE) Locomotion Command Handler not found."
exit(-1)

self.d = d

def setVelocity(self, x, y, theta=0, z = 0):
#print "VEL:%f,%f" % tuple(self.coordmap([x, y]))

Expand Down
Loading