Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adeelahsaanawan opened this issue Apr 30, 2024 · 5 comments

Comments

@adeelahsaanawan
Copy link

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!

@dji-dev
Copy link
Contributor

dji-dev commented May 3, 2024

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

°°°

@adeelahsaanawan
Copy link
Author

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

@dji-dev
Copy link
Contributor

dji-dev commented May 6, 2024

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

°°°

@adeelahsaanawan
Copy link
Author

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

@dji-dev
Copy link
Contributor

dji-dev commented May 13, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants