GeoPoint and GeoPose—and verify that client.getHomeGeoPoint() reflects the correct geo-reference.
simSetRobotGeoPose
Instantly relocate a drone to a geodetic pose while optionally enforcing collisions and ground alignment.ignore_collision— Allow placement even if the target pose intersects geometry.sweep— WhenTrue, performs a swept collision check from the current pose to the target pose.on_ground— Snap the target altitude to the first ground hit along the vertical ray. Tune the search window withground_trace_range_up/ground_trace_range_down.bounds_trim— Shrink collision bounds whenignore_collision=False(defaultVector3r(0.05, 0.05, 0.05)).timeout_sec— Maximum time allowed to find a ground trace whenon_ground=True.
moveToGPSAsync
Plan a straight-line flight toward a geodetic goal at a specified speed.velocityis expressed in meters per second.- When
yaw_mode.is_rateisFalse,yaw_or_ratespecifies the absolute yaw angle to maintain. - Drivetrain, lookahead, and timeout parameters mirror
moveToPositionAsync.
moveOnGPSPath
Follow multiple GPS waypoints with optional orientations between segments.orientations list to preserve the current heading along the path.
Choosing Between simSetRobotPose and simSetRobotGeoPose
simSetRobotPoseaccepts aPosein world meters. Use it for relative moves, scenario resets, or when working entirely in the simulation frame.simSetRobotGeoPoseaccepts aGeoPosein latitude/longitude/altitude. Use it when aligning drones with GIS datasets or real-world coordinates.
simSetRobotGeoPose for long-distance placement and simSetRobotPose for fine local adjustments.
Ground Snapping Strategies
When flying close to the surface, leverage the ground-snapping utilities in both pose setters:- Pass
on_ground=TruetosimSetRobotPoseorsimSetRobotGeoPoseto project the target onto the first ground intersection within the specified trace ranges. - Adjust
ground_trace_range_up/ground_trace_range_down(defaults ±13 km) for tall structures or underground placements.
For local-frame movement commands, return to the Movement page. To script scene layout, explore Pose Control and Runtime Object Spawning.