Skip to content

Not able to publish to the topic: /dji_sdk/flight_control_setpoint_rollpitch_yawrate_zposition #534

Open

Description

@aeronautyy

My final aim to design a NMPC controller that would generate a pitch, roll angles, yaw rate commands, and z position command.

What I am trying to do is to publish to the following topic:

/dji_sdk/flight_control_setpoint_rollpitch_yawrate_zposition

To do this, I first launch the dji_sdk_node. Then, I open another terminal, and run the following command in terminal:

rostopic pub /dji_sdk/flight_control_setpoint_rollpitch_yawrate_zposition sensor_msgs/Joy "{header: {stamp: {secs: 0, nsecs: 0}, frame_id: ''}, axes: [0.0, 0.0, 0.0, 0.5], buttons: []}"

When i run the command, it says "publishing and latching message", but I don't see anything happening in the DJI Assitant 2 Simulator.

But, When I publish to the /dji_sdk/flight_control_setpoint_generic, it works and I see the drone moving in the simulator. I think it has to do something with the flags. Could anyone please help me out here!

Activity

  1. dji-dev commented on May 3, 2024

    @dji-dev
    Contributor

    Agent comment from Leon in Zendesk ticket #106373:

    Dear adeelahsaanawan,

    Greetings. We appreciate your contact with DJI - Da-Jiang Innovations.

    We apologize for the delay. Due to the ongoing national public holiday in our country, our engineers are currently on leave. They are expected to get in touch with you again on May 6th. We sincerely apologize for any inconvenience this may have caused.

    Thank you for your support of DJI products! Wishing you all the best!

    Best Regards,

    DJI - Da-Jiang Innovations SDK Technical Support

    °°°

  2. aeronautyy commented on May 3, 2024

    @aeronautyy
    Author

    Thanks for getting back to me, I await your response.

  3. dji-dev commented on May 6, 2024

    @dji-dev
    Contributor

    Agent comment from Leon in Zendesk ticket #106373:

    Dear adeelahsaanawan,

    Greetings! We appreciate your contact with DJI - Da-Jiang Innovations.

    Thank you for your patience. May we inquire about the specific version of ROS you are using and the model of your drone? We may need to verify this information first before we can further assist you.

    Thank you for your support of DJI products! Wishing you all the best!

    Best Regards,

    DJI - Da-Jiang Innovations SDK Technical Support

    °°°

  4. aeronautyy commented on May 10, 2024

    @aeronautyy
    Author

    I am using ROS Kinetic, and DJI M300. But I have resolved the issue, I was not obtaining the control authority.

  5. dji-dev commented on May 13, 2024

    @dji-dev
    Contributor

    Agent comment from Leon in Zendesk ticket #106373:

    Dear adeelahsaanawan,

    Greetings. We appreciate your contact with DJI - Da-Jiang Innovations.

    We apologize for any inconvenience caused by the delay. We are pleased to hear that you have resolved the issue. Should you have any further requests, please do not hesitate to contact us again. Thank you once more.

    We appreciate your support for DJI products! Wishing you all the best!

    Best Regards,

    DJI - Da-Jiang Innovations SDK Technical Support

    °°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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