Closed BIGJUN777 closed 5 years ago
You are right: the service we provide takes only one object as input. We never used it for more than one object. However, the tracker itself can handle several objects.
As you suggest, you could write and extended version of the object tracker service node that can handle several objects.
run
function takes only one pose as input, and then here how the tracker is being initialized with a list containing that one pose only. You would have to extend this function to take as input several poses instead of only one. Don't forget to add the corresponding definitions of messages and services in the dbot_ros_msgs repo.
PS. I'm sorry I can't be of more help. I was not the author of this code, so I don't know it in much detail. Please take these hints with a grain of salt.
Well, thanks for your useful advise.I will try something in the following days.
Thanks again. Best!
Thanks you for responding on my previous problem. For now, what I want to do are:
The service_call script(~.py file) you provided seems can only track one object. If I want to proceed the second work described above, it seems I need to change the code to let the service get more message.I am going to do this. But I want to know did you do something like that before?Or do you have some good idea to share with me?
I am sorry maybe some sentence above are not smoothly. Hoping you can understand what I mean.
Looking for your response.Thanks!