Search found 42 matches

Go to advanced search

by Ryan
Tue Jan 14, 2020 8:50 am
Forum: How to... ?
Topic: Checking the value of all variables of all sensors of selected robot. robot
Replies: 9
Views: 29951

Re: Checking the value of all variables of all sensors of selected robot. robot

But I found when it run in Ubuntu 18.04, all values of all variables of the robot are not shown in the editor.
by Ryan
Fri Jan 10, 2020 5:22 am
Forum: How to... ?
Topic: How to locate the line that causes the segmentation fault (core dumped)
Replies: 7
Views: 24627

Re: How to locate the line that causes the segmentation fault (core dumped)

Thank you very much for your detailed answer.I solved it.
by Ryan
Thu Jan 09, 2020 10:19 am
Forum: How to... ?
Topic: How to locate the line that causes the segmentation fault (core dumped)
Replies: 7
Views: 24627

Re: How to locate the line that causes the segmentation fault (core dumped)

Actually what I more hope is that you can tell me how to debug it.
by Ryan
Thu Jan 09, 2020 10:12 am
Forum: How to... ?
Topic: How to locate the line that causes the segmentation fault (core dumped)
Replies: 7
Views: 24627

Re: How to locate the line that causes the segmentation fault (core dumped)

All the files are added in the attachments.
And what I run the file is /controller/footbot_physarum_2
the .xml file is physarum_maze_10*10.argos
by Ryan
Thu Jan 09, 2020 9:49 am
Forum: How to... ?
Topic: How to locate the line that causes the segmentation fault (core dumped)
Replies: 7
Views: 24627

Re: How to locate the line that causes the segmentation fault (core dumped)

Is it the compiled file in the build folder?
If so, I added the file to the attachment.
by Ryan
Thu Jan 09, 2020 9:19 am
Forum: How to... ?
Topic: How to locate the line that causes the segmentation fault (core dumped)
Replies: 7
Views: 24627

How to locate the line that causes the segmentation fault (core dumped)

Hey, I really don't know how to locate the line that causes the the segmentation fault (core dumped). I have tried to used valgrind to find it. And I get the results as follows: chris@chris-virtual-machine:~/argos_ws/swarm_physarum$ valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./li...
by Ryan
Fri Jan 03, 2020 5:48 am
Forum: How to... ?
Topic: How to draw the variable by the loop function
Replies: 5
Views: 17470

Re: How to draw the variable by the loop function

Yeah

Code: Select all

CFootBotPhysarum& cController = dynamic_cast<CFootBotPhysarum&>(c_entity.GetControllableEntity().GetController());
by Ryan
Fri Jan 03, 2020 5:33 am
Forum: How to... ?
Topic: How to draw the variable by the loop function
Replies: 5
Views: 17470

Re: How to draw the variable by the loop function

The terminal as follows:

Code: Select all

std::bad_cast std::bad_cast
by Ryan
Fri Jan 03, 2020 4:55 am
Forum: How to... ?
Topic: How to draw the variable by the loop function
Replies: 5
Views: 17470

How to draw the variable by the loop function

I tried to show the variable on the top of the robot. But I don't know why I failed. void CIDQTUserFunctions::Draw(CFootBotEntity& c_entity) { /* The position of the text is expressed wrt the reference point of the footbot * For a foot-bot, the reference point is the center of its base. * See al...
by Ryan
Thu Jan 02, 2020 9:30 am
Forum: How to... ?
Topic: About Footbot Distance Scanner
Replies: 2
Views: 10352

Re: About Footbot Distance Scanner

Thanks! Maybe somebody don't know how to read the data from this sensor. So I put a example as follow: void CFootBotPhysarum::Get_Distance_Scanner() { // const CCI_FootBotDistanceScannerSensor::TReadingsMap& tReads = m_ds->GetShortReadingsMap(); /* Get readings from distance scanner sensor */ co...

Go to advanced search