how to get the id of a current robot?
Posted: Fri Feb 03, 2023 5:37 am
Hi,
I hope to get the id of current robot. I find the example(trajectory.argos) to get all the id of robots in the environment. But how to get the id of a robot? For example, in the example of diffusion_10, if I want to communicate the id of a robot to another, how should I get that?
I tried to define an object of and use the function. Nevertheless, I get an empty string. I try to find out that in other examples, it seems all the other examples show how to get all the robots, but not current robot.
Thanks.
-shan
I hope to get the id of current robot. I find the example(trajectory.argos) to get all the id of robots in the environment. But how to get the id of a robot? For example, in the example of diffusion_10, if I want to communicate the id of a robot to another, how should I get that?
I tried to define an object of
Code: Select all
CFootBotEntity centity;
Code: Select all
centity.GetId()
Thanks.
-shan