Example #1
0
 def get_current_ros_accel(self):
     """
     Function used to provide the current ROS acceleration
     :return: the ROS acceleration of this Actor
     :rtype: geometry_msgs.msg.Accel
     """
     return trans.carla_acceleration_to_ros_accel(
         self.carla_actor.get_acceleration())
Example #2
0
    def get_current_ros_accel(self):
        """
        Function to provide the current ROS accel

        :return: the ROS twist of this actor
        :rtype: geometry_msgs.msg.Twist
        """
        return trans.carla_acceleration_to_ros_accel(
            self.carla_actor.get_acceleration())