### Install Example Dependencies Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Installs Python dependencies required for running the examples. This includes libraries like numpy, scipy, and opencv-python. ```bash pip install numpy scipy opencv-python rerun-sdk==0.27.3 loguru pycocotools ``` -------------------------------- ### Run Synapse Robotics Quickstart (KUKA) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the KUKA robot quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_kuka.py ``` -------------------------------- ### Run Synapse Robotics Quickstart (ABB) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the ABB robot quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_abb.py ``` -------------------------------- ### Run Synapse Robotics Quickstart (Universal Robots) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the Universal Robots quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_universal_robots.py ``` -------------------------------- ### Run Synapse Robotics Quickstart (Fanuc) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the Fanuc robot quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_fanuc.py ``` -------------------------------- ### Run Synapse Robotics Quickstart (Motoman) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the Motoman robot quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_motoman.py ``` -------------------------------- ### Run Synapse Robotics Quickstart (Franka Emika) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the Franka Emika robot quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_franka_robotics.py ``` -------------------------------- ### Run Synapse Robotics Quickstart (Neura) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the Neura robot quickstart example, which drives the robot through a Cartesian-pose circle. This requires the 'synapse' extras and Rerun SDK. ```bash python examples/synapse/quickstart_set_cartesian_pose_neura_robotics.py ``` -------------------------------- ### Clone Telekinesis Examples Repository Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Clone the main repository to get started. This command fetches the full history and all branches. ```bash git clone https://github.com/telekinesis-ai/telekinesis-examples.git cd telekinesis-examples ``` -------------------------------- ### Example File Structure Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Illustrates the recommended directory structure for placing new example files within the 'examples/' directory. ```tree examples/ ├── datatypes_examples.py ├── vitreous_examples.py ├── pupil_examples.py └── your_new_examples.py # Your new file ``` -------------------------------- ### Python Example Template Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md A template for creating new example files in Python. It includes standard imports, data directory setup, a function for a specific skill example, and argument parsing for running examples. ```python """ Examples demonstrating [Skill Group] Skills from the Telekinesis library. """ import argparse from pathlib import Path from telekinesis import your_skill_group from loguru import logger # Data directory DATA_DIR = Path(__file__).parent.parent / "telekinesis-data" def example_skill_name(): """ Demonstrates the use of skill_name. Docs: https://docs.telekinesis.ai/... """ logger.info("Running example: skill_name") # Your example code here logger.success("Example completed successfully") # Add to available examples dictionary EXAMPLES = { "skill_name": example_skill_name, } if __name__ == "__main__": parser = argparse.ArgumentParser(description="Your Skill Group Examples") parser.add_argument("--list", action="store_true", help="List all examples") parser.add_argument("--example", type=str, help="Run a specific example") args = parser.parse_args() if args.list: print("\nAvailable examples:") for name in EXAMPLES: print(f" - {name}") elif args.example: if args.example in EXAMPLES: EXAMPLES[args.example]() else: print(f"Example '{args.example}' not found") else: parser.print_help() ``` -------------------------------- ### Navigate to Examples Directory Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Changes the current directory to the cloned 'telekinesis-examples' repository. This is necessary to run the example scripts. ```bash cd telekinesis-examples ``` -------------------------------- ### Run Synapse Motion Example Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Execute a Synapse motion script for setting Cartesian pose. This example demonstrates motion planning capabilities. ```bash python examples/synapse/motion/set_cartesian_pose.py ``` -------------------------------- ### List Retina Examples Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Lists all available computer vision examples for the Retina skill group. This command helps discover runnable examples. ```bash python examples/retina_examples.py --list ``` -------------------------------- ### Run Segment Image Example Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the 'segment_image_using_sam' example from the 'cornea_examples.py' script. This will open a Rerun visualization. ```bash python examples/cornea_examples.py --example segment_image_using_sam ``` -------------------------------- ### Run Synapse Kinematics Example Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Execute a Synapse kinematics script for forward kinematics calculations. This example is useful for understanding robot arm configurations. ```bash python examples/synapse/kinematics/forward_kinematics.py ``` -------------------------------- ### Install Synapse Extras and Upgrade Rerun Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Installs the 'synapse' extras for Telekinesis AI and upgrades the Rerun SDK to version 0.31. This is required for running Synapse robotics examples. ```bash pip install 'telekinesis-ai[synapse]' pip install --upgrade rerun-sdk==0.31 ``` -------------------------------- ### List Pupil Examples Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Lists all available computer vision examples for the Pupil skill group. This command helps discover runnable examples. ```bash python examples/pupil_examples.py --list ``` -------------------------------- ### Run Medulla Webcam Capture Example Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Execute a Medulla example script to capture an image from a webcam. This demonstrates hardware communication for image acquisition. ```bash python examples/medulla/webcam/capture_image_example.py ``` -------------------------------- ### List Synapse Examples Directory Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Lists the contents of the 'examples/synapse/' directory, showing available robotics examples. Browse this directory to find specific scripts. ```bash ls examples/synapse/ ``` -------------------------------- ### List Cornea Examples Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Lists all available computer vision examples for the Cornea skill group. This command helps discover runnable examples. ```bash python examples/cornea_examples.py --list ``` -------------------------------- ### List Vitreous Examples Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Lists all available computer vision examples for the Vitreous skill group. This command helps discover runnable examples. ```bash python examples/vitreous_examples.py --list ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Install the necessary Python packages for the project, including the Telekinesis SDK and other required libraries. ```bash pip install telekinesis-ai pip install numpy scipy opencv-python rerun-sdk==0.27.3 loguru ``` -------------------------------- ### Run Vitreous Example: Estimate Principal Axes Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the 'estimate_principal_axes' example for the Vitreous skill group. This demonstrates estimating principal axes for 3D data. ```bash python examples/vitreous_examples.py --example estimate_principal_axes ``` -------------------------------- ### Run Retina Example: Detect Objects using GroundingDINO Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the 'detect_objects_using_grounding_dino' example for the Retina skill group. This demonstrates object detection using the GroundingDINO model. ```bash python examples/retina_examples.py --example detect_objects_using_grounding_dino ``` -------------------------------- ### List Medulla Examples Directory Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Lists the contents of the 'examples/medulla/' directory, showing available hardware examples. Browse this directory to find specific scripts. ```bash ls examples/medulla/ ``` -------------------------------- ### Clone Telekinesis Examples Repository Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Clones the 'telekinesis-examples' repository, including submodules. This command ensures all necessary example data is downloaded. ```bash git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/telekinesis-ai/telekinesis-examples.git ``` -------------------------------- ### Run Pupil Example: Filter Image using Morphological Gradient Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the 'filter_image_using_morphological_gradient' example for the Pupil skill group. This demonstrates image filtering techniques. ```bash python examples/pupil_examples.py --example filter_image_using_morphological_gradient ``` -------------------------------- ### Install Telekinesis AI Library Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Installs the Telekinesis AI library using pip. Ensure your Python version is 3.11 or 3.12. ```bash pip install telekinesis-ai ``` -------------------------------- ### Run Cornea Example: Segment Image using RGB Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes the 'segment_image_using_rgb' example for the Cornea skill group. This demonstrates image segmentation using RGB data. ```bash python examples/cornea_examples.py --example segment_image_using_rgb ``` -------------------------------- ### Create a New Feature Branch Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Start a new feature branch from the `develop` branch. This involves checking out `develop`, pulling the latest changes, and then creating the new branch. ```bash git checkout develop git pull origin develop git checkout -b feature/your-feature-name ``` -------------------------------- ### Activate Conda Environment Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Activates the previously created 'telekinesis' Conda environment. Ensure this is done before installing libraries. ```bash conda activate telekinesis ``` -------------------------------- ### Initialize Telekinesis Data Submodule Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Initialize the telekinesis-data submodule using a shallow clone to fetch only the latest commit, saving time and space. ```bash git submodule update --init --progress --depth 1 --recommend-shallow telekinesis-data ``` -------------------------------- ### Configure Telekinesis API Key (macOS/Linux) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Set the TELEKINESIS_API_KEY environment variable on macOS or Linux systems. ```bash export TELEKINESIS_API_KEY="your_api_key" ``` -------------------------------- ### Configure Telekinesis API Key (Windows) Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Set the TELEKINESIS_API_KEY environment variable on Windows systems. Restart terminal after execution. ```powershell setx TELEKINESIS_API_KEY "your_api_key" ``` -------------------------------- ### Import Illusion for Synthetic Data Generation Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows the specific import statement for the Illusion library, used for synthetic image data generation. ```python from telekinesis import illusion ``` -------------------------------- ### Import Telekinesis Skills Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This code demonstrates how to import various skill groups from the `telekinesis` library. Each import corresponds to a specific domain such as image segmentation, object detection, and robotics. ```python from telekinesis import cornea from telekinesis import retina from telekinesis import pupil from telekinesis import vitreous from telekinesis import synapse from telekinesis import medulla from telekinesis import illusion from telekinesis import iris ``` -------------------------------- ### Import Telekinesis Skill Groups Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Import necessary Skill Groups from the Telekinesis library for various AI tasks. ```python from telekinesis import cornea from telekinesis import retina from telekinesis import pupil from telekinesis import vitreous from telekinesis import illusion from telekinesis import iris from telekinesis import medulla ``` -------------------------------- ### Import Neuroplan for Robot Control Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Import the neuroplan module to access unified robotics skills. This allows for controlling various robot types with a consistent Python interface. ```python from telekinesis import neuroplan # robotics skills ``` -------------------------------- ### Import Iris for AI Model Training Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows the specific import statement for the Iris library, which is used for AI model training and deployment. ```python from telekinesis import iris ``` -------------------------------- ### Import Synapse for Robotics Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows the specific import statement for the Synapse library, which provides robotics functionalities. ```python from telekinesis import synapse ``` -------------------------------- ### Set Telekinesis API Key Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Configure your Telekinesis API key as an environment variable. This is required for authentication. ```bash # macOS/Linux export TELEKINESIS_API_KEY="your_api_key" # Windows setx TELEKINESIS_API_KEY "your_api_key" ``` -------------------------------- ### Execute 2D Object Detection Skill Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows how to use the `detect_objects_using_rfdetr` skill from the Retina library to perform object detection on an image. It also demonstrates how to access and convert the results. ```python from telekinesis import retina annotations, categories = retina.detect_objects_using_rfdetr( image=image, score_threshold=0.5, ) annotations = annotations.to_list() categories = categories.to_list() ``` -------------------------------- ### Import Vitreous for 3D Point Cloud Processing Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows the specific import statement for the Vitreous library, which provides 3D point cloud processing capabilities. ```python from telekinesis import vitreous ``` -------------------------------- ### Segment Image using SAM Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes a 2D image segmentation Skill using the Segment Anything Model (SAM). Requires the Cornea module and provides bounding boxes for segmentation. ```Python from telekinesis import cornea # Executing a 2D image segmentation Skill result = cornea.segment_image_using_sam( image=image, bboxes=[[400, 150, 1200, 450]] ) # Access results annotations = result.to_list() ``` -------------------------------- ### Import Pupil for 2D Image Processing Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows the specific import statement for the Pupil library, which provides 2D image processing functionalities. ```python from telekinesis import pupil ``` -------------------------------- ### Update Submodules After Initial Clone Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md If submodules were not initialized during the initial clone, use this command to update them. ```bash git submodule update --init --recursive ``` -------------------------------- ### Update Telekinesis Data Submodule to Latest Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Update the `telekinesis-data` submodule to the latest commit from its remote repository, stage the change, and commit it. ```bash # Update the submodule to the latest commit from remote git submodule update --remote telekinesis-data # Stage the submodule update git add telekinesis-data # Commit the update git commit -m "chore: update telekinesis-data submodule to latest" # Push to remote git push origin develop # or main, depending on your branch ``` -------------------------------- ### Create Conda Environment Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Creates a new Conda environment named 'telekinesis' with Python 3.11. This isolates dependencies for the project. ```bash conda create -n telekinesis python=3.11 ``` -------------------------------- ### Import Cornea for Image Segmentation Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md This snippet shows the specific import statement for the Cornea library, which provides image segmentation skills. ```python from telekinesis import cornea ``` -------------------------------- ### Push Feature Branch Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Push your local feature branch to the remote repository to prepare for a Pull Request. ```bash git push origin feature/your-feature-name ``` -------------------------------- ### Detect Objects using RF-DETR Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/README.md Executes an object detection Skill using the RF-DETR model. Requires the Retina module for object detection. ```Python from telekinesis import retina ``` -------------------------------- ### Check Git Submodule Status Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md View the current status of Git submodules to ensure they are correctly initialized and updated. ```bash git submodule status ``` -------------------------------- ### Manually Update Submodule to Specific Commit Source: https://github.com/telekinesis-ai/telekinesis-examples/blob/main/DEVELOPMENT.md Update the `telekinesis-data` submodule to a specific commit hash by fetching, checking out the commit, staging, and committing the change. ```bash cd telekinesis-data git fetch git checkout cd .. git add telekinesis-data git commit -m "chore: update telekinesis-data to commit " git push origin develop ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.