Skip to main content

Agente robótico basado en VLM que navega e interactúa con personas según objetivos visuales

Project description

🤖 vlm_robot_agent

Author: Edison Bejarano

Library designed to use VLMs in the context of robotics actions for planning and interactions

Un agente robótico inteligente basado en modelos de lenguaje visual (VLM), que puede percibir el entorno desde una imagen, planificar acciones y decidir entre navegar o interactuar con personas para alcanzar un objetivo dado (como entrar en una habitación, buscar un baño, etc).


🚀 Características

  • 📷 Percepción visual usando un VLM de OpenAI
  • 🧠 Razonamiento basado en objetivos (macro y micro-goals)
  • 🧭 Acciones de navegación:
    • forward, left, right, forward_left, forward_right
  • 🙋 Acciones de interacción:
    • Conversar con una persona que bloquea el paso
    • Hacer gestos para pedir que se mueva
  • 💾 Memoria de interacciones y lectura/ejecución de prompts desde un folder

📦 Instalación

pip install vlm_robot_agent

🛠 Uso básico

from vlm_robot_agent import VLMRobotAgent

agent = VLMRobotAgent(prompt_folder="./prompts")

image = obtener_imagen_de_tu_robot()
goal = "entrar a la oficina 3"

# Loop de ejecución
while True:
    action = agent.step(image, goal)
    ejecutar_action_en_robot(action)
    if objetivo_cumplido():
        break

📁 Estructura de prompts

Los prompts se almacenan como archivos .json dentro del folder configurado, y puedes cargarlos con:

prompts = agent.load_prompts()

🧩 Integración con robots

  • Puede usarse en sistemas ROS, simuladores como Gazebo, o cualquier entorno de robots.
  • El agente necesita:
    • Imagen actual del entorno (image)
    • Objetivo a cumplir (goal)
    • Una función que ejecute la acción devuelta (Navigate, Interact)

📚 Ejemplo de acciones

from vlm_robot_agent import Navigate, Interact

# Navegar hacia adelante
Navigate(direction="forward")

# Pedir a una persona que se mueva
Interact(strategy="ask_to_move")

📄 Licencia

MIT


🧠 Futuras mejoras

  • Seguimiento de progreso con StateTracker
  • Manejo de múltiples agentes o flujos conversacionales
  • Soporte para entrada multimodal (texto + imagen)

Edison Bejarano

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vlm_robot_agent-0.1.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vlm_robot_agent-0.1.3-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file vlm_robot_agent-0.1.3.tar.gz.

File metadata

  • Download URL: vlm_robot_agent-0.1.3.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for vlm_robot_agent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 35d5a06db76fb3eb44190df21421c15e1940376fcc1623db9bea218261458c39
MD5 a9c6bf821a56c373c8bafae7884ccfb4
BLAKE2b-256 a3d9883a4b2d1d000a4f82400d8913954db8c8cb0c0ba2de52c55941edae0f8a

See more details on using hashes here.

File details

Details for the file vlm_robot_agent-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for vlm_robot_agent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddc3ec0c1f31a2a28e318ad4a3fc436de9b493f878a9e08e1f2d68a2e67c405
MD5 39d8a251d5a5a67eb6d2557924eab70f
BLAKE2b-256 4464de8ffe0750a52b3d2bfc75ab904e70812b2780f6561f727e2b74e4eb9d8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page