Skip to content

Commit

Permalink
Merge pull request #391 from IMRCLab/issue390
Browse files Browse the repository at this point in the history
Fix frequent crashes of figure8 example
  • Loading branch information
knmcguire authored Dec 21, 2023
2 parents 9db8360 + e954bc8 commit 8ba970f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crazyflie/deps/crazyflie_tools
Submodule crazyflie_tools updated 1 files
+1 −1 crazyflie_cpp
6 changes: 5 additions & 1 deletion crazyflie_py/crazyflie_py/crazyflie.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ def uploadTrajectory(self, trajectoryId, pieceOffset, trajectory):
req.trajectory_id = trajectoryId
req.piece_offset = pieceOffset
req.pieces = pieces
self.uploadTrajectoryService.call_async(req)
future = self.uploadTrajectoryService.call_async(req)
while rclpy.ok():
rclpy.spin_once(self.node)
if future.done():
break

def startTrajectory(self, trajectoryId,
timescale=1.0, reverse=False,
Expand Down

0 comments on commit 8ba970f

Please sign in to comment.