Skip to content

Commit

Permalink
Moving the robot with ROS/Gazebo works
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Leva committed Jun 24, 2016
1 parent b6cd72d commit 082ff0f
Show file tree
Hide file tree
Showing 20 changed files with 360 additions and 1,517 deletions.
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

0 comments on commit 082ff0f

Please sign in to comment.