You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AI module apply the example model from DJI Education Hub, which detect EP.
TT Drone run the program 01_ai_module_tt.py in this repository.
# -*-coding:utf-8-*-# Copyright (c) 2020 DJI.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License in the file LICENSE.txt or at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.importtimefromrobomasterimportrobotdefsub_ia_info_handler(ai_info):
id, x, y, w, h, C=ai_infoprint("ai target id:{0}, x:{1:.3f}, y:{2:.3f}, w:{3:.3f}, h:{4:.3f}, C:{5}".format(id, x, y, w, h, C))
if__name__=='__main__':
tl_drone=robot.Drone()
tl_drone.initialize()
# 订阅AI模块信息tl_drone.ai_module.sub_ai_info(freq=5, callback=sub_ia_info_handler)
time.sleep(60)
# 取消订阅tl_drone.ai_module.unsub_ai_info()
tl_drone.close()
I hope it can return detecting data, but it print nothing actually.
Explore
program doesn't call the callback function.
when run tl_drone.ai_module.get_ai(), it return None.
Problem
AI module apply the example model from DJI Education Hub, which detect EP.
TT Drone run the program
01_ai_module_tt.py
in this repository.I hope it can return detecting data, but it print nothing actually.
Explore
program doesn't call the callback function.
when run
tl_drone.ai_module.get_ai()
, it return None.Obviously, it raise error when failed to send message.
In
dds.py
, theexec
function has not called successfully.In class Subscriber, I can't locate the problem why it can't run the
exec
function.Other
I am not sure whether the ai model can not detect the EP so that the program haven't return message?
Hope can get some helps.
The text was updated successfully, but these errors were encountered: