Page 1 of 1

moving objects

Posted: Mon Aug 08, 2022 6:24 pm
by germanpatt
hello pincy, how are you?

is there an easy way to make kilobot push movable cylinders?

thank you in advance!

Re: moving objects

Posted: Mon Aug 08, 2022 7:26 pm
by pincy
All good here! Kilobots can move cylinders, at least in theory, if the cylinders are small enough. What's the specific issue you're encountering?

Re: moving objects

Posted: Tue Aug 09, 2022 6:32 pm
by germanpatt
hi again,

it seems that in my experiment, cylinders (also tried boxes) are treated as unmovable objects even though I declare them to be movable. the kilobot collides with them and reorients according to the bot's random behavior

the experiment file is as follows:

Code: Select all

<?xml version="1.0" ?> <argos-configuration> <!-- ************************* --> <!-- * General configuration * --> <!-- ************************* --> <framework> <system threads="0" /> <experiment length="18000" ticks_per_second="30" random_seed="0" /> </framework> <!-- *************** --> <!-- * Controllers * --> <!-- *************** --> <controllers> <kilobot_controller id="ACT"> <actuators> <differential_steering implementation="default" /> <kilobot_communication implementation="default" /> <kilobot_led implementation="default" /> </actuators> <sensors> <kilobot_communication implementation="default" medium="kilocomm" show_rays="false" /> </sensors> <params behavior="build/examples/behaviors/random_3states" /> </kilobot_controller> </controllers> <!-- ****************** --> <!-- * Loop functions * --> <!-- ****************** --> <loop_functions library="build/examples/loop_functions/track_loop_functions/libtrack_loop_functions" label="track_loop_functions" /> <!-- *********************** --> <!-- * Arena configuration * --> <!-- *********************** --> <arena size="0.281, 0.281, 1" center="0,0,0.5"> <box id="wallID0000" size="0.001,0.268,0.05" movable="false"> <body position="0.134,0.000,0" orientation="0.000,0,0" /> </box> <box id="wallID0001" size="0.001,0.268,0.05" movable="false"> <body position="0.134,0.004,0" orientation="1.800,0,0" /> </box> <box id="wallID0002" size="0.001,0.268,0.05" movable="false"> <body position="0.134,0.008,0" orientation="3.600,0,0" /> </box> <box id="wallID0003" size="0.001,0.268,0.05" movable="false"> <body position="0.133,0.013,0" orientation="5.400,0,0" /> </box> <box id="wallID0004" size="0.001,0.268,0.05" movable="false"> <body position="0.133,0.017,0" orientation="7.200,0,0" /> </box> <box id="wallID0005" size="0.001,0.268,0.05" movable="false"> <body position="0.132,0.021,0" orientation="9.000,0,0" /> </box> <box id="wallID0006" size="0.001,0.268,0.05" movable="false"> <body position="0.132,0.025,0" orientation="10.800,0,0" /> </box> <box id="wallID0007" size="0.001,0.268,0.05" movable="false"> <body position="0.131,0.029,0" orientation="12.600,0,0" /> </box> <box id="wallID0008" size="0.001,0.268,0.05" movable="false"> <body position="0.130,0.033,0" orientation="14.400,0,0" /> </box> <box id="wallID0009" size="0.001,0.268,0.05" movable="false"> <body position="0.129,0.037,0" orientation="16.200,0,0" /> </box> <box id="wallID0010" size="0.001,0.268,0.05" movable="false"> <body position="0.127,0.041,0" orientation="18.000,0,0" /> </box> <box id="wallID0011" size="0.001,0.268,0.05" movable="false"> <body position="0.126,0.045,0" orientation="19.800,0,0" /> </box> <box id="wallID0012" size="0.001,0.268,0.05" movable="false"> <body position="0.125,0.049,0" orientation="21.600,0,0" /> </box> <box id="wallID0013" size="0.001,0.268,0.05" movable="false"> <body position="0.123,0.053,0" orientation="23.400,0,0" /> </box> <box id="wallID0014" size="0.001,0.268,0.05" movable="false"> <body position="0.121,0.057,0" orientation="25.200,0,0" /> </box> <box id="wallID0015" size="0.001,0.268,0.05" movable="false"> <body position="0.119,0.061,0" orientation="27.000,0,0" /> </box> <box id="wallID0016" size="0.001,0.268,0.05" movable="false"> <body position="0.117,0.065,0" orientation="28.800,0,0" /> </box> <box id="wallID0017" size="0.001,0.268,0.05" movable="false"> <body position="0.115,0.068,0" orientation="30.600,0,0" /> </box> <box id="wallID0018" size="0.001,0.268,0.05" movable="false"> <body position="0.113,0.072,0" orientation="32.400,0,0" /> </box> <box id="wallID0019" size="0.001,0.268,0.05" movable="false"> <body position="0.111,0.075,0" orientation="34.200,0,0" /> </box> <box id="wallID0020" size="0.001,0.268,0.05" movable="false"> <body position="0.108,0.079,0" orientation="36.000,0,0" /> </box> <box id="wallID0021" size="0.001,0.268,0.05" movable="false"> <body position="0.106,0.082,0" orientation="37.800,0,0" /> </box> <box id="wallID0022" size="0.001,0.268,0.05" movable="false"> <body position="0.103,0.085,0" orientation="39.600,0,0" /> </box> <box id="wallID0023" size="0.001,0.268,0.05" movable="false"> <body position="0.101,0.089,0" orientation="41.400,0,0" /> </box> <box id="wallID0024" size="0.001,0.268,0.05" movable="false"> <body position="0.098,0.092,0" orientation="43.200,0,0" /> </box> <box id="wallID0025" size="0.001,0.268,0.05" movable="false"> <body position="0.095,0.095,0" orientation="45.000,0,0" /> </box> <box id="wallID0026" size="0.001,0.268,0.05" movable="false"> <body position="0.092,0.098,0" orientation="46.800,0,0" /> </box> <box id="wallID0027" size="0.001,0.268,0.05" movable="false"> <body position="0.089,0.101,0" orientation="48.600,0,0" /> </box> <box id="wallID0028" size="0.001,0.268,0.05" movable="false"> <body position="0.085,0.103,0" orientation="50.400,0,0" /> </box> <box id="wallID0029" size="0.001,0.268,0.05" movable="false"> <body position="0.082,0.106,0" orientation="52.200,0,0" /> </box> <box id="wallID0030" size="0.001,0.268,0.05" movable="false"> <body position="0.079,0.108,0" orientation="54.000,0,0" /> </box> <box id="wallID0031" size="0.001,0.268,0.05" movable="false"> <body position="0.075,0.111,0" orientation="55.800,0,0" /> </box> <box id="wallID0032" size="0.001,0.268,0.05" movable="false"> <body position="0.072,0.113,0" orientation="57.600,0,0" /> </box> <box id="wallID0033" size="0.001,0.268,0.05" movable="false"> <body position="0.068,0.115,0" orientation="59.400,0,0" /> </box> <box id="wallID0034" size="0.001,0.268,0.05" movable="false"> <body position="0.065,0.117,0" orientation="61.200,0,0" /> </box> <box id="wallID0035" size="0.001,0.268,0.05" movable="false"> <body position="0.061,0.119,0" orientation="63.000,0,0" /> </box> <box id="wallID0036" size="0.001,0.268,0.05" movable="false"> <body position="0.057,0.121,0" orientation="64.800,0,0" /> </box> <box id="wallID0037" size="0.001,0.268,0.05" movable="false"> <body position="0.053,0.123,0" orientation="66.600,0,0" /> </box> <box id="wallID0038" size="0.001,0.268,0.05" movable="false"> <body position="0.049,0.125,0" orientation="68.400,0,0" /> </box> <box id="wallID0039" size="0.001,0.268,0.05" movable="false"> <body position="0.045,0.126,0" orientation="70.200,0,0" /> </box> <box id="wallID0040" size="0.001,0.268,0.05" movable="false"> <body position="0.041,0.127,0" orientation="72.000,0,0" /> </box> <box id="wallID0041" size="0.001,0.268,0.05" movable="false"> <body position="0.037,0.129,0" orientation="73.800,0,0" /> </box> <box id="wallID0042" size="0.001,0.268,0.05" movable="false"> <body position="0.033,0.130,0" orientation="75.600,0,0" /> </box> <box id="wallID0043" size="0.001,0.268,0.05" movable="false"> <body position="0.029,0.131,0" orientation="77.400,0,0" /> </box> <box id="wallID0044" size="0.001,0.268,0.05" movable="false"> <body position="0.025,0.132,0" orientation="79.200,0,0" /> </box> <box id="wallID0045" size="0.001,0.268,0.05" movable="false"> <body position="0.021,0.132,0" orientation="81.000,0,0" /> </box> <box id="wallID0046" size="0.001,0.268,0.05" movable="false"> <body position="0.017,0.133,0" orientation="82.800,0,0" /> </box> <box id="wallID0047" size="0.001,0.268,0.05" movable="false"> <body position="0.013,0.133,0" orientation="84.600,0,0" /> </box> <box id="wallID0048" size="0.001,0.268,0.05" movable="false"> <body position="0.008,0.134,0" orientation="86.400,0,0" /> </box> <box id="wallID0049" size="0.001,0.268,0.05" movable="false"> <body position="0.004,0.134,0" orientation="88.200,0,0" /> </box> <box id="wallID0050" size="0.001,0.268,0.05" movable="false"> <body position="0.000,0.134,0" orientation="90.000,0,0" /> </box> <box id="wallID0051" size="0.001,0.268,0.05" movable="false"> <body position="-0.004,0.134,0" orientation="91.800,0,0" /> </box> <box id="wallID0052" size="0.001,0.268,0.05" movable="false"> <body position="-0.008,0.134,0" orientation="93.600,0,0" /> </box> <box id="wallID0053" size="0.001,0.268,0.05" movable="false"> <body position="-0.013,0.133,0" orientation="95.400,0,0" /> </box> <box id="wallID0054" size="0.001,0.268,0.05" movable="false"> <body position="-0.017,0.133,0" orientation="97.200,0,0" /> </box> <box id="wallID0055" size="0.001,0.268,0.05" movable="false"> <body position="-0.021,0.132,0" orientation="99.000,0,0" /> </box> <box id="wallID0056" size="0.001,0.268,0.05" movable="false"> <body position="-0.025,0.132,0" orientation="100.800,0,0" /> </box> <box id="wallID0057" size="0.001,0.268,0.05" movable="false"> <body position="-0.029,0.131,0" orientation="102.600,0,0" /> </box> <box id="wallID0058" size="0.001,0.268,0.05" movable="false"> <body position="-0.033,0.130,0" orientation="104.400,0,0" /> </box> <box id="wallID0059" size="0.001,0.268,0.05" movable="false"> <body position="-0.037,0.129,0" orientation="106.200,0,0" /> </box> <box id="wallID0060" size="0.001,0.268,0.05" movable="false"> <body position="-0.041,0.127,0" orientation="108.000,0,0" /> </box> <box id="wallID0061" size="0.001,0.268,0.05" movable="false"> <body position="-0.045,0.126,0" orientation="109.800,0,0" /> </box> <box id="wallID0062" size="0.001,0.268,0.05" movable="false"> <body position="-0.049,0.125,0" orientation="111.600,0,0" /> </box> <box id="wallID0063" size="0.001,0.268,0.05" movable="false"> <body position="-0.053,0.123,0" orientation="113.400,0,0" /> </box> <box id="wallID0064" size="0.001,0.268,0.05" movable="false"> <body position="-0.057,0.121,0" orientation="115.200,0,0" /> </box> <box id="wallID0065" size="0.001,0.268,0.05" movable="false"> <body position="-0.061,0.119,0" orientation="117.000,0,0" /> </box> <box id="wallID0066" size="0.001,0.268,0.05" movable="false"> <body position="-0.065,0.117,0" orientation="118.800,0,0" /> </box> <box id="wallID0067" size="0.001,0.268,0.05" movable="false"> <body position="-0.068,0.115,0" orientation="120.600,0,0" /> </box> <box id="wallID0068" size="0.001,0.268,0.05" movable="false"> <body position="-0.072,0.113,0" orientation="122.400,0,0" /> </box> <box id="wallID0069" size="0.001,0.268,0.05" movable="false"> <body position="-0.075,0.111,0" orientation="124.200,0,0" /> </box> <box id="wallID0070" size="0.001,0.268,0.05" movable="false"> <body position="-0.079,0.108,0" orientation="126.000,0,0" /> </box> <box id="wallID0071" size="0.001,0.268,0.05" movable="false"> <body position="-0.082,0.106,0" orientation="127.800,0,0" /> </box> <box id="wallID0072" size="0.001,0.268,0.05" movable="false"> <body position="-0.085,0.103,0" orientation="129.600,0,0" /> </box> <box id="wallID0073" size="0.001,0.268,0.05" movable="false"> <body position="-0.089,0.101,0" orientation="131.400,0,0" /> </box> <box id="wallID0074" size="0.001,0.268,0.05" movable="false"> <body position="-0.092,0.098,0" orientation="133.200,0,0" /> </box> <box id="wallID0075" size="0.001,0.268,0.05" movable="false"> <body position="-0.095,0.095,0" orientation="135.000,0,0" /> </box> <box id="wallID0076" size="0.001,0.268,0.05" movable="false"> <body position="-0.098,0.092,0" orientation="136.800,0,0" /> </box> <box id="wallID0077" size="0.001,0.268,0.05" movable="false"> <body position="-0.101,0.089,0" orientation="138.600,0,0" /> </box> <box id="wallID0078" size="0.001,0.268,0.05" movable="false"> <body position="-0.103,0.085,0" orientation="140.400,0,0" /> </box> <box id="wallID0079" size="0.001,0.268,0.05" movable="false"> <body position="-0.106,0.082,0" orientation="142.200,0,0" /> </box> <box id="wallID0080" size="0.001,0.268,0.05" movable="false"> <body position="-0.108,0.079,0" orientation="144.000,0,0" /> </box> <box id="wallID0081" size="0.001,0.268,0.05" movable="false"> <body position="-0.111,0.075,0" orientation="145.800,0,0" /> </box> <box id="wallID0082" size="0.001,0.268,0.05" movable="false"> <body position="-0.113,0.072,0" orientation="147.600,0,0" /> </box> <box id="wallID0083" size="0.001,0.268,0.05" movable="false"> <body position="-0.115,0.068,0" orientation="149.400,0,0" /> </box> <box id="wallID0084" size="0.001,0.268,0.05" movable="false"> <body position="-0.117,0.065,0" orientation="151.200,0,0" /> </box> <box id="wallID0085" size="0.001,0.268,0.05" movable="false"> <body position="-0.119,0.061,0" orientation="153.000,0,0" /> </box> <box id="wallID0086" size="0.001,0.268,0.05" movable="false"> <body position="-0.121,0.057,0" orientation="154.800,0,0" /> </box> <box id="wallID0087" size="0.001,0.268,0.05" movable="false"> <body position="-0.123,0.053,0" orientation="156.600,0,0" /> </box> <box id="wallID0088" size="0.001,0.268,0.05" movable="false"> <body position="-0.125,0.049,0" orientation="158.400,0,0" /> </box> <box id="wallID0089" size="0.001,0.268,0.05" movable="false"> <body position="-0.126,0.045,0" orientation="160.200,0,0" /> </box> <box id="wallID0090" size="0.001,0.268,0.05" movable="false"> <body position="-0.127,0.041,0" orientation="162.000,0,0" /> </box> <box id="wallID0091" size="0.001,0.268,0.05" movable="false"> <body position="-0.129,0.037,0" orientation="163.800,0,0" /> </box> <box id="wallID0092" size="0.001,0.268,0.05" movable="false"> <body position="-0.130,0.033,0" orientation="165.600,0,0" /> </box> <box id="wallID0093" size="0.001,0.268,0.05" movable="false"> <body position="-0.131,0.029,0" orientation="167.400,0,0" /> </box> <box id="wallID0094" size="0.001,0.268,0.05" movable="false"> <body position="-0.132,0.025,0" orientation="169.200,0,0" /> </box> <box id="wallID0095" size="0.001,0.268,0.05" movable="false"> <body position="-0.132,0.021,0" orientation="171.000,0,0" /> </box> <box id="wallID0096" size="0.001,0.268,0.05" movable="false"> <body position="-0.133,0.017,0" orientation="172.800,0,0" /> </box> <box id="wallID0097" size="0.001,0.268,0.05" movable="false"> <body position="-0.133,0.013,0" orientation="174.600,0,0" /> </box> <box id="wallID0098" size="0.001,0.268,0.05" movable="false"> <body position="-0.134,0.008,0" orientation="176.400,0,0" /> </box> <box id="wallID0099" size="0.001,0.268,0.05" movable="false"> <body position="-0.134,0.004,0" orientation="178.200,0,0" /> </box> <box id="wallID0100" size="0.001,0.268,0.05" movable="false"> <body position="-0.134,0.000,0" orientation="180.000,0,0" /> </box> <box id="wallID0101" size="0.001,0.268,0.05" movable="false"> <body position="-0.134,-0.004,0" orientation="181.800,0,0" /> </box> <box id="wallID0102" size="0.001,0.268,0.05" movable="false"> <body position="-0.134,-0.008,0" orientation="183.600,0,0" /> </box> <box id="wallID0103" size="0.001,0.268,0.05" movable="false"> <body position="-0.133,-0.013,0" orientation="185.400,0,0" /> </box> <box id="wallID0104" size="0.001,0.268,0.05" movable="false"> <body position="-0.133,-0.017,0" orientation="187.200,0,0" /> </box> <box id="wallID0105" size="0.001,0.268,0.05" movable="false"> <body position="-0.132,-0.021,0" orientation="189.000,0,0" /> </box> <box id="wallID0106" size="0.001,0.268,0.05" movable="false"> <body position="-0.132,-0.025,0" orientation="190.800,0,0" /> </box> <box id="wallID0107" size="0.001,0.268,0.05" movable="false"> <body position="-0.131,-0.029,0" orientation="192.600,0,0" /> </box> <box id="wallID0108" size="0.001,0.268,0.05" movable="false"> <body position="-0.130,-0.033,0" orientation="194.400,0,0" /> </box> <box id="wallID0109" size="0.001,0.268,0.05" movable="false"> <body position="-0.129,-0.037,0" orientation="196.200,0,0" /> </box> <box id="wallID0110" size="0.001,0.268,0.05" movable="false"> <body position="-0.127,-0.041,0" orientation="198.000,0,0" /> </box> <box id="wallID0111" size="0.001,0.268,0.05" movable="false"> <body position="-0.126,-0.045,0" orientation="199.800,0,0" /> </box> <box id="wallID0112" size="0.001,0.268,0.05" movable="false"> <body position="-0.125,-0.049,0" orientation="201.600,0,0" /> </box> <box id="wallID0113" size="0.001,0.268,0.05" movable="false"> <body position="-0.123,-0.053,0" orientation="203.400,0,0" /> </box> <box id="wallID0114" size="0.001,0.268,0.05" movable="false"> <body position="-0.121,-0.057,0" orientation="205.200,0,0" /> </box> <box id="wallID0115" size="0.001,0.268,0.05" movable="false"> <body position="-0.119,-0.061,0" orientation="207.000,0,0" /> </box> <box id="wallID0116" size="0.001,0.268,0.05" movable="false"> <body position="-0.117,-0.065,0" orientation="208.800,0,0" /> </box> <box id="wallID0117" size="0.001,0.268,0.05" movable="false"> <body position="-0.115,-0.068,0" orientation="210.600,0,0" /> </box> <box id="wallID0118" size="0.001,0.268,0.05" movable="false"> <body position="-0.113,-0.072,0" orientation="212.400,0,0" /> </box> <box id="wallID0119" size="0.001,0.268,0.05" movable="false"> <body position="-0.111,-0.075,0" orientation="214.200,0,0" /> </box> <box id="wallID0120" size="0.001,0.268,0.05" movable="false"> <body position="-0.108,-0.079,0" orientation="216.000,0,0" /> </box> <box id="wallID0121" size="0.001,0.268,0.05" movable="false"> <body position="-0.106,-0.082,0" orientation="217.800,0,0" /> </box> <box id="wallID0122" size="0.001,0.268,0.05" movable="false"> <body position="-0.103,-0.085,0" orientation="219.600,0,0" /> </box> <box id="wallID0123" size="0.001,0.268,0.05" movable="false"> <body position="-0.101,-0.089,0" orientation="221.400,0,0" /> </box> <box id="wallID0124" size="0.001,0.268,0.05" movable="false"> <body position="-0.098,-0.092,0" orientation="223.200,0,0" /> </box> <box id="wallID0125" size="0.001,0.268,0.05" movable="false"> <body position="-0.095,-0.095,0" orientation="225.000,0,0" /> </box> <box id="wallID0126" size="0.001,0.268,0.05" movable="false"> <body position="-0.092,-0.098,0" orientation="226.800,0,0" /> </box> <box id="wallID0127" size="0.001,0.268,0.05" movable="false"> <body position="-0.089,-0.101,0" orientation="228.600,0,0" /> </box> <box id="wallID0128" size="0.001,0.268,0.05" movable="false"> <body position="-0.085,-0.103,0" orientation="230.400,0,0" /> </box> <box id="wallID0129" size="0.001,0.268,0.05" movable="false"> <body position="-0.082,-0.106,0" orientation="232.200,0,0" /> </box> <box id="wallID0130" size="0.001,0.268,0.05" movable="false"> <body position="-0.079,-0.108,0" orientation="234.000,0,0" /> </box> <box id="wallID0131" size="0.001,0.268,0.05" movable="false"> <body position="-0.075,-0.111,0" orientation="235.800,0,0" /> </box> <box id="wallID0132" size="0.001,0.268,0.05" movable="false"> <body position="-0.072,-0.113,0" orientation="237.600,0,0" /> </box> <box id="wallID0133" size="0.001,0.268,0.05" movable="false"> <body position="-0.068,-0.115,0" orientation="239.400,0,0" /> </box> <box id="wallID0134" size="0.001,0.268,0.05" movable="false"> <body position="-0.065,-0.117,0" orientation="241.200,0,0" /> </box> <box id="wallID0135" size="0.001,0.268,0.05" movable="false"> <body position="-0.061,-0.119,0" orientation="243.000,0,0" /> </box> <box id="wallID0136" size="0.001,0.268,0.05" movable="false"> <body position="-0.057,-0.121,0" orientation="244.800,0,0" /> </box> <box id="wallID0137" size="0.001,0.268,0.05" movable="false"> <body position="-0.053,-0.123,0" orientation="246.600,0,0" /> </box> <box id="wallID0138" size="0.001,0.268,0.05" movable="false"> <body position="-0.049,-0.125,0" orientation="248.400,0,0" /> </box> <box id="wallID0139" size="0.001,0.268,0.05" movable="false"> <body position="-0.045,-0.126,0" orientation="250.200,0,0" /> </box> <box id="wallID0140" size="0.001,0.268,0.05" movable="false"> <body position="-0.041,-0.127,0" orientation="252.000,0,0" /> </box> <box id="wallID0141" size="0.001,0.268,0.05" movable="false"> <body position="-0.037,-0.129,0" orientation="253.800,0,0" /> </box> <box id="wallID0142" size="0.001,0.268,0.05" movable="false"> <body position="-0.033,-0.130,0" orientation="255.600,0,0" /> </box> <box id="wallID0143" size="0.001,0.268,0.05" movable="false"> <body position="-0.029,-0.131,0" orientation="257.400,0,0" /> </box> <box id="wallID0144" size="0.001,0.268,0.05" movable="false"> <body position="-0.025,-0.132,0" orientation="259.200,0,0" /> </box> <box id="wallID0145" size="0.001,0.268,0.05" movable="false"> <body position="-0.021,-0.132,0" orientation="261.000,0,0" /> </box> <box id="wallID0146" size="0.001,0.268,0.05" movable="false"> <body position="-0.017,-0.133,0" orientation="262.800,0,0" /> </box> <box id="wallID0147" size="0.001,0.268,0.05" movable="false"> <body position="-0.013,-0.133,0" orientation="264.600,0,0" /> </box> <box id="wallID0148" size="0.001,0.268,0.05" movable="false"> <body position="-0.008,-0.134,0" orientation="266.400,0,0" /> </box> <box id="wallID0149" size="0.001,0.268,0.05" movable="false"> <body position="-0.004,-0.134,0" orientation="268.200,0,0" /> </box> <box id="wallID0150" size="0.001,0.268,0.05" movable="false"> <body position="-0.000,-0.134,0" orientation="270.000,0,0" /> </box> <box id="wallID0151" size="0.001,0.268,0.05" movable="false"> <body position="0.004,-0.134,0" orientation="271.800,0,0" /> </box> <box id="wallID0152" size="0.001,0.268,0.05" movable="false"> <body position="0.008,-0.134,0" orientation="273.600,0,0" /> </box> <box id="wallID0153" size="0.001,0.268,0.05" movable="false"> <body position="0.013,-0.133,0" orientation="275.400,0,0" /> </box> <box id="wallID0154" size="0.001,0.268,0.05" movable="false"> <body position="0.017,-0.133,0" orientation="277.200,0,0" /> </box> <box id="wallID0155" size="0.001,0.268,0.05" movable="false"> <body position="0.021,-0.132,0" orientation="279.000,0,0" /> </box> <box id="wallID0156" size="0.001,0.268,0.05" movable="false"> <body position="0.025,-0.132,0" orientation="280.800,0,0" /> </box> <box id="wallID0157" size="0.001,0.268,0.05" movable="false"> <body position="0.029,-0.131,0" orientation="282.600,0,0" /> </box> <box id="wallID0158" size="0.001,0.268,0.05" movable="false"> <body position="0.033,-0.130,0" orientation="284.400,0,0" /> </box> <box id="wallID0159" size="0.001,0.268,0.05" movable="false"> <body position="0.037,-0.129,0" orientation="286.200,0,0" /> </box> <box id="wallID0160" size="0.001,0.268,0.05" movable="false"> <body position="0.041,-0.127,0" orientation="288.000,0,0" /> </box> <box id="wallID0161" size="0.001,0.268,0.05" movable="false"> <body position="0.045,-0.126,0" orientation="289.800,0,0" /> </box> <box id="wallID0162" size="0.001,0.268,0.05" movable="false"> <body position="0.049,-0.125,0" orientation="291.600,0,0" /> </box> <box id="wallID0163" size="0.001,0.268,0.05" movable="false"> <body position="0.053,-0.123,0" orientation="293.400,0,0" /> </box> <box id="wallID0164" size="0.001,0.268,0.05" movable="false"> <body position="0.057,-0.121,0" orientation="295.200,0,0" /> </box> <box id="wallID0165" size="0.001,0.268,0.05" movable="false"> <body position="0.061,-0.119,0" orientation="297.000,0,0" /> </box> <box id="wallID0166" size="0.001,0.268,0.05" movable="false"> <body position="0.065,-0.117,0" orientation="298.800,0,0" /> </box> <box id="wallID0167" size="0.001,0.268,0.05" movable="false"> <body position="0.068,-0.115,0" orientation="300.600,0,0" /> </box> <box id="wallID0168" size="0.001,0.268,0.05" movable="false"> <body position="0.072,-0.113,0" orientation="302.400,0,0" /> </box> <box id="wallID0169" size="0.001,0.268,0.05" movable="false"> <body position="0.075,-0.111,0" orientation="304.200,0,0" /> </box> <box id="wallID0170" size="0.001,0.268,0.05" movable="false"> <body position="0.079,-0.108,0" orientation="306.000,0,0" /> </box> <box id="wallID0171" size="0.001,0.268,0.05" movable="false"> <body position="0.082,-0.106,0" orientation="307.800,0,0" /> </box> <box id="wallID0172" size="0.001,0.268,0.05" movable="false"> <body position="0.085,-0.103,0" orientation="309.600,0,0" /> </box> <box id="wallID0173" size="0.001,0.268,0.05" movable="false"> <body position="0.089,-0.101,0" orientation="311.400,0,0" /> </box> <box id="wallID0174" size="0.001,0.268,0.05" movable="false"> <body position="0.092,-0.098,0" orientation="313.200,0,0" /> </box> <box id="wallID0175" size="0.001,0.268,0.05" movable="false"> <body position="0.095,-0.095,0" orientation="315.000,0,0" /> </box> <box id="wallID0176" size="0.001,0.268,0.05" movable="false"> <body position="0.098,-0.092,0" orientation="316.800,0,0" /> </box> <box id="wallID0177" size="0.001,0.268,0.05" movable="false"> <body position="0.101,-0.089,0" orientation="318.600,0,0" /> </box> <box id="wallID0178" size="0.001,0.268,0.05" movable="false"> <body position="0.103,-0.085,0" orientation="320.400,0,0" /> </box> <box id="wallID0179" size="0.001,0.268,0.05" movable="false"> <body position="0.106,-0.082,0" orientation="322.200,0,0" /> </box> <box id="wallID0180" size="0.001,0.268,0.05" movable="false"> <body position="0.108,-0.079,0" orientation="324.000,0,0" /> </box> <box id="wallID0181" size="0.001,0.268,0.05" movable="false"> <body position="0.111,-0.075,0" orientation="325.800,0,0" /> </box> <box id="wallID0182" size="0.001,0.268,0.05" movable="false"> <body position="0.113,-0.072,0" orientation="327.600,0,0" /> </box> <box id="wallID0183" size="0.001,0.268,0.05" movable="false"> <body position="0.115,-0.068,0" orientation="329.400,0,0" /> </box> <box id="wallID0184" size="0.001,0.268,0.05" movable="false"> <body position="0.117,-0.065,0" orientation="331.200,0,0" /> </box> <box id="wallID0185" size="0.001,0.268,0.05" movable="false"> <body position="0.119,-0.061,0" orientation="333.000,0,0" /> </box> <box id="wallID0186" size="0.001,0.268,0.05" movable="false"> <body position="0.121,-0.057,0" orientation="334.800,0,0" /> </box> <box id="wallID0187" size="0.001,0.268,0.05" movable="false"> <body position="0.123,-0.053,0" orientation="336.600,0,0" /> </box> <box id="wallID0188" size="0.001,0.268,0.05" movable="false"> <body position="0.125,-0.049,0" orientation="338.400,0,0" /> </box> <box id="wallID0189" size="0.001,0.268,0.05" movable="false"> <body position="0.126,-0.045,0" orientation="340.200,0,0" /> </box> <box id="wallID0190" size="0.001,0.268,0.05" movable="false"> <body position="0.127,-0.041,0" orientation="342.000,0,0" /> </box> <box id="wallID0191" size="0.001,0.268,0.05" movable="false"> <body position="0.129,-0.037,0" orientation="343.800,0,0" /> </box> <box id="wallID0192" size="0.001,0.268,0.05" movable="false"> <body position="0.130,-0.033,0" orientation="345.600,0,0" /> </box> <box id="wallID0193" size="0.001,0.268,0.05" movable="false"> <body position="0.131,-0.029,0" orientation="347.400,0,0" /> </box> <box id="wallID0194" size="0.001,0.268,0.05" movable="false"> <body position="0.132,-0.025,0" orientation="349.200,0,0" /> </box> <box id="wallID0195" size="0.001,0.268,0.05" movable="false"> <body position="0.132,-0.021,0" orientation="351.000,0,0" /> </box> <box id="wallID0196" size="0.001,0.268,0.05" movable="false"> <body position="0.133,-0.017,0" orientation="352.800,0,0" /> </box> <box id="wallID0197" size="0.001,0.268,0.05" movable="false"> <body position="0.133,-0.013,0" orientation="354.600,0,0" /> </box> <box id="wallID0198" size="0.001,0.268,0.05" movable="false"> <body position="0.134,-0.008,0" orientation="356.400,0,0" /> </box> <box id="wallID0199" size="0.001,0.268,0.05" movable="false"> <body position="0.134,-0.004,0" orientation="358.200,0,0" /> </box> <distribute> <position method="constant" values="0,0,0" /> <orientation method="uniform" min="0,0,0" max="360,0,0" /> <entity quantity="1" max_trials="10000"> <kilobot id="ACT"> <controller config="ACT" />> </kilobot> </entity> </distribute> <distribute> <position method="uniform" min="-0.125,-0.125,0" max="0.125,0.125,0" /> <orientation method="constant" values="0,0,0" /> <entity quantity="7" max_trials="10000"> <cylinder id="PAS" height="0.035" radius="0.019" mass="0.00001" movable="true" /> </entity> </distribute> </arena> <!-- ******************* --> <!-- * Physics engines * --> <!-- ******************* --> <physics_engines> <dynamics2d id="dyn2d" /> </physics_engines> <!-- ********* --> <!-- * Media * --> <!-- ********* --> <media> <kilobot_communication id="kilocomm" /> </media> <!-- ***************** --> <!-- * Visualization * --> <!-- ***************** --> <visualization> <qt-opengl> <camera> <placements> <placement index="0" position="0,0,2.5" look_at="0,0,0" up="0,-1,0" lens_focal_length="100" /> </placements> </camera> </qt-opengl> </visualization> </argos-configuration>
any idea?

Re: moving objects

Posted: Mon Sep 19, 2022 8:34 pm
by pincy
It might be that the Kilobots don't have enough strength to move the objects. In real life they might be able to, but it's possible that ARGoS is configured to have boxes and cylinder whose static friction is too high.

You can change both the linear and angular friction of the box and cylinder using the attributes "box_linear_friction", "box_angular_friction", "cylinder_linear_friction", and "cylinder_angular_friction". Check the output of

Code: Select all

argos3 -q dynamics2d
for more information.

If lowering the friction doesn't work, you can increase the drag force of the Kilobots. The lines of code to change are here.

Re: moving objects

Posted: Wed Nov 02, 2022 11:26 am
by roberts
Hello and thank you @pincy for these lines of code, it helps me a lot.