#!/usr/bin/env python

#
# Copyright (c) 2020 Intel Corporation
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
#
"""
Class to handle rss sensor
"""

from carla_cyber_bridge.actor import Actor


class RssSensor(Actor):

    """
    Actor implementation details for a RSS sensor

    As the RSS sensor in CARLA requires additional
    utilization it's not handled as a sensor here.
    """

    def __init__(self, uid, name, parent, relative_spawn_pose, node, carla_actor, _):
        """
        Constructor

        :param uid: unique identifier for this object
        :type uid: int
        :param name: name identiying this object
        :type name: string
        :param parent: the parent of this
        :type parent: carla_cyber_bridge.Parent
        :param relative_spawn_pose: the spawn pose of this
        :type relative_spawn_pose: geometry_msgs.Pose
        :param node: node-handle
        :type node: CompatibleNode
        :param carla_actor: carla actor object
        :type carla_actor: carla.Actor
        """

        super(RssSensor, self).__init__(uid=uid,
                                        name=name,
                                        parent=parent,
                                        relative_spawn_pose=relative_spawn_pose,
                                        node=node,
                                        carla_actor=carla_actor)
