Example #1
0
 def get_pose(self):
     x, y, t = SimObject.get_pose(self)
     rx, ry, rt = self.__frame.get_pose()
     return Pose(
         rx +
         x *
         cos(rt) -
         y *
         sin(rt),
         ry +
         x *
         sin(rt) +
         y *
         cos(rt),
         t +
         rt)
Example #2
0
 def get_internal_pose(self):
     return SimObject.get_pose(self)
Example #3
0
 def __init__(self,pose,robot):
     SimObject.__init__(self,pose)
     self.__robot = robot
Example #4
0
 def get_internal_pose(self):
     """Get the pose of the sensor in the parent (robot) coordinates."""
     return SimObject.get_pose(self)
Example #5
0
 def __init__(self,pose,parent):
     SimObject.__init__(self,pose)
     self.__frame = parent
Example #6
0
 def get_pose(self):
     x, y, t = SimObject.get_pose(self)
     rx, ry, rt = self.__frame.get_pose()
     return Pose(rx + x * cos(rt) - y * sin(rt),
                 ry + x * sin(rt) + y * cos(rt), t + rt)
Example #7
0
 def get_internal_pose(self):
     """Get the pose of the sensor in the parent (robot) coordinates."""
     return SimObject.get_pose(self)
Example #8
0
 def __init__(self, pose, parent):
     SimObject.__init__(self, pose)
     self.__frame = parent
Example #9
0
 def get_internal_pose(self):
     """Get the pose of the sensor from simobject inheritance"""
     return SimObject.get_pose(self)
Example #10
0
 def __init__(self,pose,frame):
     SimObject.__init__(self,pose)
     self.__frame = frame