- Include description comments at the beginning of each python example
- Unify description comments format - Remove some unrequired lines
This commit is contained in:
parent
1f28b623eb
commit
4514f16c2d
|
@ -6,7 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Example of automatic vehicle control from client side."""
|
||||
"""Example of automatic vehicle control from client side, with a python defined agent"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Visualize the skeleton of a pedestrian"""
|
||||
|
||||
import math
|
||||
import argparse
|
||||
import copy
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de
|
||||
# Copyright (c) 2024 Computer Vision Center (CVC) at the Universitat Autonoma de
|
||||
# Barcelona (UAB).
|
||||
#
|
||||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Smooth movement of a camera interpolating collection of keypoints provided in a xml file"""
|
||||
|
||||
import argparse
|
||||
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
from scipy.interpolate import interp1d
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""
|
||||
Example script to generate realistic traffic with the InvertedAI API
|
||||
"""
|
||||
"""Example script to generate realistic traffic with the InvertedAI API"""
|
||||
|
||||
import os
|
||||
import time
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Sequentially visualize the opendrive points"""
|
||||
|
||||
import carla
|
||||
|
||||
import argparse
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
# Allows controlling a vehicle with a keyboard. For a simpler and more
|
||||
# documented example, please take a look at tutorial.py.
|
||||
"""Allows controlling a vehicle with a keyboard."""
|
||||
|
||||
"""
|
||||
Welcome to CARLA manual control.
|
||||
|
@ -57,10 +56,6 @@ Use ARROWS or WASD keys for control.
|
|||
from __future__ import print_function
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# -- find carla module ---------------------------------------------------------
|
||||
# ==============================================================================
|
||||
|
||||
# ==============================================================================
|
||||
# -- imports -------------------------------------------------------------------
|
||||
# ==============================================================================
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
# Allows controlling a vehicle with a keyboard. For a simpler and more
|
||||
# documented example, please take a look at tutorial.py.
|
||||
"""Allows controlling a vehicle with a keyboard, generating traffic in the simulation"""
|
||||
|
||||
"""
|
||||
Welcome to CARLA manual control.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
# Allows visualising a 2D map generated by vehicles.
|
||||
"""Allows visualising a 2D map generated by vehicles."""
|
||||
|
||||
"""
|
||||
Welcome to CARLA No-Rendering Mode Visualizer
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Script that helps users to manually check a specific log"""
|
||||
"""Script that helps users to manually replay a log previously recorded"""
|
||||
|
||||
import argparse
|
||||
import threading
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Example visualization of vehicle doors opening"""
|
||||
|
||||
import argparse
|
||||
import math
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Visualize the catalog of vehicles present in CARLA"""
|
||||
|
||||
import carla
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ import math
|
|||
|
||||
import carla
|
||||
|
||||
"""Visualize the different vehicle lights"""
|
||||
|
||||
def get_transform(vehicle, angle, d=2.5):
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
# This work is licensed under the terms of the MIT license.
|
||||
# For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
"""Visualize the radar data"""
|
||||
|
||||
import argparse
|
||||
import math
|
||||
|
|
Loading…
Reference in New Issue