Using the Velodyne Point Cloud Service¶
This example demonstrates how to use the Velodyne service to query for point clouds. It authenticates with the robot and sets up a PointCloudClient. Once the client is set up, it polls the service for updated point clouds and displays them using Pyplot.
This example needs to be run with python3 and have the Spot SDK installed. It also requires PyQt5.
On Linux, it is recommended to not install this through pip so that system theming works correctly. In order to use system PyQt packages in a virtual environment, create the virtualenv with
See the requirements.txt file for a list of dependencies. Install dependencies with pip using the following commands:
python -m pip install -r requirements.txt
py.exe -3 -m pip install -r requirements.txt
Running the Example¶
To run the examples:
python client.py ROBOT_HOSTNAME