umdlife / psdk_ros2

This repository is a ROS 2 wrapper for the DJI PSDK libraries.

Home Page:https://umdlife.github.io/psdk_ros2/documentation/Introduction.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The node cannot be reconnected to the drone after the node is killed

RPS98 opened this issue · comments

Tell us about your environment

  • Ubuntu version: 22.04
  • Docker Version:
  • ROS/ROS2 version: ROS 2 Humble
  • Commit hash: main 94cfd3a

Steps to reproduce issue

  1. Launch PSDK wrapper and wait for connection
  2. Kill the node using SIGINT (Ctrl+C)
  3. Relaunch the PSDK wrapper and observe that the connection fails, as the DJI Core cannot be initialized

Expected behavior

Being able to reconnect to the drone without rebooting it.

Actual behavior

I must reboot the drone after each connection.

Are you willing to make a PR? If yes, add the PR link here.

I found a solution by calling the DJI Core and module Deinit functions in PR #77

Closing this as the PR has been merged!