能否使用DJI Mobile SDK: ActiveTrack Mission API实现抵达混凝土墙指定点位?
Great question! Let’s break down whether you can repurpose DJI’s ActiveTrack Mission API for your concrete wall target use case instead of tracking moving objects.
Core Feasibility
At its core, ActiveTrack relies on the drone’s camera to identify and lock onto a high-contrast visual target. If you use a laser pointer to create a distinct, bright spot on the otherwise homogeneous concrete wall, the drone can potentially recognize that spot as a trackable target. This works because the laser marker creates enough visual separation from the wall’s texture for the drone’s vision system to pick up. That said, this isn’t what ActiveTrack was designed for, so you’ll run into some notable limitations.
Key Limitations to Consider
- Environmental Interference: Bright sunlight or fluctuating ambient light can wash out the laser spot, making it nearly impossible for the drone to track. Even subtle shifts in lighting (like clouds passing overhead) could cause the system to lose lock on the target.
- Target Size & Distance Constraints: ActiveTrack has strict minimum and maximum target size requirements. If the laser spot is too small (especially from long distances) or too large relative to the camera frame, the drone might fail to detect or maintain lock on it. You’ll need to test different laser intensities and flight distances to find a reliable sweet spot for your specific drone model.
- Unpredictable Static Target Behavior: ActiveTrack is optimized for following moving objects. When used on a static laser spot, you might encounter unexpected behavior—like overcorrection if the drone drifts slightly, or losing the target if the spot shifts position in the camera frame (even accidentally).
- Mission Configuration Tweaks: By default, ActiveTrack missions are built to follow a target’s path. To get the drone to arrive at the laser spot instead of just hovering nearby, you’ll need to adjust mission parameters (like
followMode) or combine ActiveTrack with waypoint logic to guide the drone to the exact position.
More Reliable Alternatives
If ActiveTrack’s limitations prove too frustrating, consider these purpose-built alternatives:
Waypoint Mission API: This API is designed for precise navigation to fixed coordinates. If you can obtain GPS (or RTK for centimeter-level accuracy) coordinates of your target spot, a waypoint mission will be far more reliable for "arriving at a specified point."- Vision Positioning with Physical Markers: Instead of a laser, use a high-contrast physical marker (like a QR code or bold sticker) on the wall. DJI’s vision systems detect these markers more consistently than laser spots, and you can use the
VisionPositioningAPI to fine-tune the drone’s position relative to the marker.
内容的提问来源于stack exchange,提问作者Taku Koyahata

