예제 #1
0
    def set_commands(self, commands, commands_source):
        BOVehicleSimulation.set_commands(self, commands, commands_source)

        if self.viz_level >= VizLevel.Sensels:
            self.publish_ros_commands(commands)
        if self.viz_level >= VizLevel.Geometry:
            self.publish_ros_markers()

        if self.vehicle_collided:  # FIXME:
            import rospy
            rospy.loginfo('Restarting new episode due to collision.')
            self.new_episode()