Page 1 of 1

Passing robot Id through RAB Actuator

Posted: Wed Jun 12, 2019 7:40 am
by Waqar731
Hi,
I am trying to pass the foot-bot id through RAB Actuator through following line of code.

Code: Select all

std::string RiD = "fb0"; m_pcRABA->SetData(0, RiD);

But I am getting the following error. How do I pass the id?


Screenshot from 2019-06-12 12-30-41.png
Screenshot from 2019-06-12 12-30-41.png (151.91 KiB) Viewed 7518 times


Thanks and best Regards.

Re: Passing robot Id through RAB Actuator

Posted: Wed Jun 12, 2019 2:01 pm
by pincy
Passing strings is inefficient. See here: https://www.argos-sim.info/forum/viewto ... c4d3e60b64