Skip to content

Questions Regarding [Policy Deployment, Trigger Behavior, Documentation, and Logging] #13

@coolermzb3

Description

@coolermzb3

Hello, @jonas-eschmann !

Thank you so much for your paper and project! I’m deeply interested and have reproduced the entire work from scratch (starting with purchasing a Crazyflie) —— it’s really amazing!

However, I’ve run into a few issues and would greatly appreciate your guidance:

  1. [Critical] Sudden Power Loss.
    When switching to my trained policy (e.g., with the default seed=0) by pressing button ("hover" on the gamepad, or "enter" in trigger.py), the drone frequently experiences a sudden power loss approximately 2 seconds after the motor starts, which cannot be powered on via the power button, unless the charger is plugged in.
    Switching to another actor.h (e.g., the pre-trained one in your repository or my seed=6 model) may reduce the issue. However, adjusting --height in trigger.py (e.g., to 0.2 or 0.3) always reproduces the issue. Is this the expected behavior, or am I making some mistakes?

  2. send_hover_packet in trigger.py Seems Not Working?
    During takeoff_and_switch, the drone doesn't act as described. Instead, it waits on the ground for 3 seconds and then directly activates the policy. Am I missing something?

  3. Documentation Updates
    3.1 The Deploy section only describes the Docker method without mentioning the Native one. Besides, the pre-built Docker image on DockerHub uses an older controller version (0a7680d), which lacks the motor_warmup feature (re-enabled in d52b11a), causing conflicts with the current trigger.py. To work around this, I reverse-engineered a native compilation script via Dockerfile_build_firmware, but it would be helpful to officially document this for other users. (I'd be happy to submit a PR, but perhaps it would be better for you to handle it to ensure accuracy?)
    3.2 The Gamepad section mentions modifying parameters like rlt.wn to 4, but I couldn’t find where to make these changes (in the cfclient? Or somewhere else?). Is it only for trigger.py?

  4. Accessing LOGs/DEBUG_PRINTs
    I noticed logging statements (e.g., LOG and DEBUG_PRINT) in rl_tools_controller.c. Could you please tell me how to view these logs?

Any clarification would be greatly appreciated! Thank you again for your time and excellent work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions