Misty Lessons
  • Misty Lessons
    • 📖Welcome to Misty Lessons
    • 📚Get to know your Misty
    • 📲Connect to Misty
    • 👩‍💻Misty Studio
    • 🖥️Desktop Environment
    • ⬆️Update your Misty
    • 👥Projects
  • Blockly
    • 🧩Blockly Lessons
      • 🤸Lesson 1: Movement
      • 🎶Lesson 2: Voice and Sound
      • 🎭Lesson 3: Expressions
      • 🎥Lesson 4: Robot Cinema
      • 🛠️Lesson 5: Events
      • ☺️Lesson 6: Face recognition
      • 🔢Lesson 7: Variables and Functions
      • 💬Lesson 8: NLP
    • 🏫Blockly projects
  • Blockly Elements
    • ⚛️Misty Blocks
      • Movement
      • Speech
      • Audio
      • Vision
      • Events
      • Miscellaneous
      • NLP
      • System
    • 🔁Basic Blocks
      • Logic
      • Loops
      • Math
      • Text
      • Lists
    • 🅰️Advanced Blocks
      • Variables
      • Functions
  • Python
    • 🐍Python Lessons
      • 🦿Lesson 1: Loco-motion
      • 🤖Lesson 2 : Build a character
      • 🧠Lesson 3: Create memories
      • ⚒️Lesson 4: Event skills
      • 👀Lesson 5: Expand awareness
      • 🔗Lesson 6: Compact code
      • 🗣️Lesson 7: Start a conversation
  • Python Elements
    • 🐸Misty Python API
      • Motion and Mobility
      • Display and LED
      • Record Assets
      • Change/Remove Assets
      • Stream Assets
      • Get Assets
      • Events
      • Sensor Events
      • Speech and NLP
      • Arduino Backpack
      • System
      • Slam
    • 📗Python Definitions
  • Python Projects
    • 🔮MistyGPT
    • 🚨Misty Intruder Alert
    • 📺Conference Assistant
    • 🏷️QR code detector
    • 🕵️‍♂️Misty follow human
    • 👋Misty wave back
    • 🖲️Misty OA
    • 🌐Get weather
    • 🚚Misty Delivery
    • 🫂Motivational Misty
    • 🖼️Misty Museum Guide
    • 🎃Who for Halloween
  • ARDUINO
    • ♾️Arduino Backpack
    • 🦎Arduino
    • 🔧Arduino Lessons
      • 🔌Arduino to Misty
      • ➕Misty to Arduino
  • ARDUINO PROJECTS
    • 🛠️Misty Tracker
    • 🦾Misty Arm
  • Community Projects
    • 🌤️Misty weather forecaster
  • HARDWARE EXTENSION
    • ⚙️Arduino breadboard support
    • 🦾Misty arm
    • 🥤Tin holder
  • Resource Database
    • 📁Image files
    • 📁Audio files
    • 📁Languages
    • 📁Known objects
    • 📁NLP Actions
    • 📁Action Commands
    • 📁ChatGPT PDF files
    • 📁AR Tag Dictionary
    • ⚙️Technical Specifications
Powered by GitBook
On this page
  • ActuatorPosition
  • BumpSensor
  • CapTouch Sensor
  • TimeOfFlight
  • Face Recognition
  • Object Detection
  1. Python Elements
  2. Misty Python API

Sensor Events

The following list contains the names of all sensor events' parameters. With these names, you can filter your events and build amazing functions and interactions with Misty!

For example in the bump sensor Python function, to select a specific bumper you need to create an if statement where you verify:

if data["message"]["sensorId"] == 'bfr':
    #actions

On this page, you'll get all the information about the name of the parameter, the comparison operator and the comparison value:

ActuatorPosition

 ActuatorPosition Event:
        ArmLeft = ("SensorId", "=", "ala")
        ArmRight = ("SensorId", "=", "ara")
        HeadPitch = ("SensorId", "=", "ahp")
        HeadRoll = ("SensorId", "=", "ahr")
        HeadYaw = ("SensorId", "=", "ahy")

BumpSensor

BumpSensorPosition Event:
        BackLeft = ("SensorId", "=", "brl")
        BackRight = ("SensorId", "=", "brr")
        FrontLeft = ("SensorId", "=", "bfl")
        FrontRight = ("SensorId", "=", "bfr")

CapTouch Sensor

CapTouchPosition Event:
        Chin = ("SensorPosition", "=", "Chin")
        Scruff = ("SensorPosition", "=", "Scruff")
        Right = ("SensorPosition", "=", "HeadRight")
        Left = ("SensorPosition", "=", "HeadLeft")
        Back = ("SensorPosition", "=", "HeadBack")
        Front = ("SensorPosition", "=", "HeadFront")

TimeOfFlight

Distance

    TimeOfFlightDistance Event:
        MinDistance = ("DistanceInMeters", ">=", value)
        MinDistance = ("DistanceInMeters", ">=", value)

Position

TimeOfFlightPosition Event:
        FrontLeft = ("SensorPosition", "=", "Left")
        FrontRight = ("SensorPosition", "=", "Right")
        FrontCenter = ("SensorPosition", "=", "Center")
        Back = ("SensorPosition", "=", "Back")
        DownwardBackLeft = ("SensorPosition", "=", "DownBackLeft")
        DownwardBackRight = ("SensorPosition", "=", "DownBackRight")
        DownwardFrontLeft = ("SensorPosition", "=", "DownFrontLeft")
        DownwardFrontRight = ("SensorPosition", "=", "DownFrontRight")

Status

TimeOfFlightStatus Event:
        MinStatus = ("Status", ">=", value)
        MaxStatus = ("Status", "<=", value)    
        StatusEqual = ("Status", "=", value)

Face Recognition

FaceRecognition Event:
        Label = ("Label", "=", "your_name")

Object Detection

ObjectDetection Event:
Description = ("description","=","knownobject_name")

Last updated 1 year ago

🐸