parameters: (self, ros_walker_control)
docstring: Receive a CarlaWalkerControl msg and send to CARLA
          This function gets called whenever a ROS message is received via
          '/carla/<role name>/walker_control_cmd' topic.
          The received ROS message is converted into carla.WalkerControl command and
          sent to CARLA.
          :param ros_walker_control: current walker control input received via ROS
          :type self.info.output: carla_ros_bridge.msg.CarlaWalkerControl
          :return:
docstring_summary: Receive a CarlaWalkerControl msg and send to CARLA
          This function gets called whenever a ROS message is received via
          '/carla/<role name>/walker_control_cmd' topic.
          The received ROS message is converted into carla.WalkerControl command and
          sent to CARLA.
          :param ros_walker_control: current walker control input received via ROS
          :type self.info.output: carla_ros_bridge.msg.CarlaWalkerControl
          :return:
docstring_tokens: Receive a CarlaWalkerControl msg and send to CARLA This function gets called whenever a ROS message is received via / carla / <role name > / walker_control_cmd topic . The received ROS message is converted into carla . WalkerControl command and sent to CARLA . : param ros_walker_control : current walker control input received via ROS : type self . info . output : carla_ros_bridge . msg . CarlaWalkerControl : return :
function: def control_command_updated(self, ros_walker_control):
          """
          Receive a CarlaWalkerControl msg and send to CARLA
          This function gets called whenever a ROS message is received via
          '/carla/<role name>/walker_control_cmd' topic.
          The received ROS message is converted into carla.WalkerControl command and
          sent to CARLA.
          :param ros_walker_control: current walker control input received via ROS
          :type self.info.output: carla_ros_bridge.msg.CarlaWalkerControl
          :return:
          """
          walker_control = WalkerControl()
          walker_control.direction.x = ros_walker_control.direction.x
          walker_control.direction.y = -ros_walker_control.direction.y
          walker_control.direction.z = ros_walker_control.direction.z
          walker_control.speed = ros_walker_control.speed
          walker_control.jump = ros_walker_control.jump
          self.carla_actor.apply_control(walker_control)
function_tokens: def control_command_updated ( self , ros_walker_control ) : walker_control = WalkerControl ( ) walker_control . direction . x = ros_walker_control . direction . x walker_control . direction . y = - ros_walker_control . direction . y walker_control . direction . z = ros_walker_control . direction . z walker_control . speed = ros_walker_control . speed walker_control . jump = ros_walker_control . jump self . carla_actor . apply_control ( walker_control )