Passing robot Id through RAB Actuator

Requests regarding how to set up experiments in ARGoS.
Waqar731
Posts: 65
Joined: Thu Oct 23, 2014 12:33 pm
Location: Pakistan
Contact:

Passing robot Id through RAB Actuator

Postby Waqar731 » Wed Jun 12, 2019 7:40 am

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 7355 times


Thanks and best Regards.
Waqar Hussain

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Passing robot Id through RAB Actuator

Postby pincy » Wed Jun 12, 2019 2:01 pm

Passing strings is inefficient. See here: https://www.argos-sim.info/forum/viewto ... c4d3e60b64
I made ARGoS.


Return to “How to... ?”