diff --git a/README.md b/README.md index 2ba5150..15aaf39 100644 --- a/README.md +++ b/README.md @@ -46,23 +46,25 @@ Make sure that `PYTHONPATH` env variable contains CARLA distribution egg, so tha python PythonAPI/util/config.py --no-rendering # Preview while cruising on autopilot (birdview/__main__.py) -birdview-demo +python -m carla_birdeye_view ``` ### Basic code usage ```python -from carla_birdeye_view import BirdViewProducer +from carla_birdeye_view import BirdViewProducer, PixelDimensions birdview_producer = BirdViewProducer( - client, - target_size=PixelDimensions(width=birdview.DEFAULT_WIDTH, height=birdview.DEFAULT_HEIGHT), + client, # carla.Client + target_size=PixelDimensions(width=150, height=336), pixels_per_meter=4, ) # Input for your model - call it every simulation step # returned result is np.ndarray with ones and zeros of shape (8, height, width) -birdview = birdview_producer.produce(agent_vehicle=agent) +birdview = birdview_producer.produce( + agent_vehicle=agent # carla.Actor (spawned vehicle) +) # Use only if you want to visualize # produces np.ndarray of shape (height, width, 3) diff --git a/setup.py b/setup.py index a5cfe4c..8e36f6e 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="carla-birdeye-view", - version="1.0.12", + version="1.0.14", description="Bird-eye's view for CARLA simulator", keywords=["CARLA", "birdview", "bird-eye's view", "Reinforcement Learning", "RL"], long_description=README, @@ -23,7 +23,7 @@ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8," + "Programming Language :: Python :: 3.8" ], include_package_data=True, install_requires=REQUIREMENTS,