Onboard-SDK-ROS icon indicating copy to clipboard operation
Onboard-SDK-ROS copied to clipboard

ROS node dies when stopping the camera stream

Open lorenzave opened this issue 5 years ago • 5 comments

Hi, I am using M300+H20T with latest firmware and 4.0.1 OSDK and OSDK-ROS. I am using the obsolete interface. Whenever I call the setup_camera_stream service for the main camera the node dies.

I dont get any feedback in the logfiles but I can see this error in dmesg which is similar to a previous error that would be caused when stopping the camera stream.

[  306.359938] dji_osdk_ros_no[6704]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x92000006
[  306.359948] pgd = ffffffc07998c000
[  306.363398] [00000000] *pgd=000000024655f003, *pud=000000024655f003, *pmd=0000000000000000

[  306.371844] CPU: 3 PID: 6704 Comm: dji_osdk_ros_no Not tainted 4.4.38-l4t-r28.2+g174510d #2
[  306.371848] Hardware name: quill (DT)
[  306.371853] task: ffffffc1dfe34b00 ti: ffffffc1d0e00000 task.ti: ffffffc1d0e00000
[  306.371858] PC is at 0x7922c8
[  306.371860] LR is at 0x78ee28
[  306.371864] pc : [<00000000007922c8>] lr : [<000000000078ee28>] pstate: 60000000
[  306.371867] sp : 0000007f4d7fdec0
[  306.371870] x29: 0000007f4d7fdec0 x28: 00000000009a1870 
[  306.371874] x27: 0000007f81f09000 x26: 0000007f240008c0 
[  306.371878] x25: 0000000000000002 x24: 0000007f780008e0 
[  306.371882] x23: 0000007f4d7fe2e8 x22: 0000000000000000 
[  306.371885] x21: 0000007f24000c09 x20: 0000000000a0ef20 
[  306.371888] x19: 00000000009a8910 x18: 0000007fd712ae88 
[  306.371891] x17: 0000007f80ab2c80 x16: 00000000008b77d8 
[  306.371894] x15: 0000007f81f3a000 x14: 0000000000000000 
[  306.371907] x13: ffffffffff000000 x12: 0000000000000000 
[  306.371911] x11: 0000000000000040 x10: 0000000000000042 
[  306.371914] x9 : 0000007f24000c50 x8 : 0000000000000000 
[  306.371917] x7 : 0000000000000000 x6 : 0000000000000000 
[  306.371920] x5 : 0000007f24000028 x4 : 00000000ffffffff 
[  306.371924] x3 : 0000000000a1c950 x2 : 00000000009a8910 
[  306.371927] x1 : 00000000006d66d4 x0 : 0000000000000000 

[  306.371936] vdso base = 0x7f81f39000

Thanks

lorenzave avatar Sep 01 '20 07:09 lorenzave

Agent comment from kyle.cai in Zendesk ticket #38717:

Dear developer ,

Thank you for contacting DJI.

Is it test with OSDK-ROS sample ? if runs with sample, could you please provide the detail operation steps and the complete terminal log. if not, suggest you provide the detail interface you used and test with origin sample.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

dji-dev avatar Sep 02 '20 04:09 dji-dev

Hi Support,

This is with the "obsolete" interface which doesn't have any samples. I made an error while trying to launch the node, now I CAN setup the camera and get frames in ROS.

The issue now is when I call rosservice call /dji_osdk_ros/setup_camera_stream "cameraType: 1 start: 0" to stop the stream the node dies. I can mitigate it by forcing a respawn to the node but it would be nice to solve it.

Thanks

lorenzave avatar Sep 02 '20 09:09 lorenzave

Agent comment from kyle.cai in Zendesk ticket #38717:

Dear developer ,

Thank you for contacting DJI.

For better technical support and maintenance, it is recommended that you do not use obsolete interfaces. Sorry for the inconvience to you.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

dji-dev avatar Sep 03 '20 08:09 dji-dev

A colleague of @lorenzave here.

We use the obsolete interface because neither 4.0.0 or 4.0.1 have support for velocity control and do not publish information on vital topics as detailed in #389 .

ghost avatar Sep 07 '20 14:09 ghost

Agent comment from kyle.cai in Zendesk ticket #38717:

Dear developer ,

Thank you for contacting DJI.

The obsolete interface is also available now, for match the older versions(3.8) of ROS Node. And the version 4.0.0 or 4.0.1 supports velocity control also, but it maybe not provide the complete demo in vehicle node.You can refer to the obsolete interface for self-implementation.

If you need the DJI provide relevant demo, It is recommended that you click on the links on the right side and fill in the relevant demand information, https://formcrafts.com/a/dji-developer-feedback-en In order to better match your requirements, try to include the following information when filling in:

  1. Desired functions and requirements
  2. Company/organization profile
  3. Project descriptions that use this feature requirement.
  4. Personal background or brief introduction.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

dji-dev avatar Sep 08 '20 06:09 dji-dev