Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xml xmlns="http://www.w3.org/1999/xhtml">
- <variables>
- <variable type="" id="d/EpjIBO3f!]-)RZ_m.A">left</variable>
- <variable type="" id="Su{TSoYB(9X1oITn*I%{">right</variable>
- </variables>
- <block type="ros_basic_init_node" id="=B*iFbj4CzP/zaILrhBp" x="-488" y="-588">
- <field name="NODE_NAME">Control</field>
- <next>
- <block type="init_turtle" id="0+}|2wwHN!j,FhW7^L|O">
- <next>
- <block type="face_goal" id="60,WCna(^`ak5;MB[OCf">
- <next>
- <block type="move_turtlebot_distance" id="NqoS@X.?4BR**WL{Z$zO">
- <value name="Distance">
- <block type="math_arithmetic" id="d}ky0`:Q*=D`$;PJk?hZ">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="IY8y}x=/=XYZ_s5-r9Jw">
- <field name="NUM">1</field>
- </shadow>
- <block type="angle_obstacle" id="3,/`8^t6BdL+F#Y]GihH">
- <value name="angle">
- <block type="math_number" id="Ees,NHN%F1k@j7fQsYGd">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="WtEL_i^G]wxkg@t5?CW2">
- <field name="NUM">1</field>
- </shadow>
- <block type="math_number" id="(47iPpc.fPUsAv7Wr]~Y">
- <field name="NUM">0.3</field>
- </block>
- </value>
- </block>
- </value>
- <next>
- <block type="add_checkpoint" id="tHx_8psCJ|ocEfhOfUi}">
- <next>
- <block type="turn_turtle_angle" id="^xo.lpr4QRrbna~C4(A3">
- <field name="direction">LEFT</field>
- <field name="angle">90</field>
- <next>
- <block type="move_turtlebot_distance" id="N#-m![7nnKQ}3h@`4pXz">
- <value name="Distance">
- <block type="math_number" id="#rOl.6}A92xQ?H,Au7:m">
- <field name="NUM">1</field>
- </block>
- </value>
- <next>
- <block type="controls_whileUntil" id="BR=z%[I`FxH[%W:e,Nxl">
- <field name="MODE">WHILE</field>
- <value name="BOOL">
- <block type="logic_operation" id="NHQjZsaT8#k?a%/rtqfO">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="]QT7f[oXsi4j][jhx130">
- <field name="OP">LT</field>
- <value name="A">
- <block type="math_single" id="74;C.RW@q+pM%(5EF0xW">
- <field name="OP">ABS</field>
- <value name="NUM">
- <shadow type="math_number" id="4ZKOS9,HV3Q647}TO~+Z">
- <field name="NUM">9</field>
- </shadow>
- <block type="math_arithmetic" id="?BWu%$P1WtC=-?/O-@uG">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="ZJ*/cn3EnLAHpzF|g/!3">
- <field name="NUM">1</field>
- </shadow>
- <block type="goal_y" id=";@kFwaeoiOL@pMlaCygG"></block>
- </value>
- <value name="B">
- <shadow type="math_number" id="V$$n%^jM180!l[omp;^e">
- <field name="NUM">1</field>
- </shadow>
- <block type="own_y" id="L=a.i^bkxt%Y3_)eCGP:"></block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="!d+5V7oF2*0qo9i9mW#/">
- <field name="NUM">0.1</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="u1Ue#1/VumF!LWsG(9wE">
- <field name="OP">LT</field>
- <value name="A">
- <block type="math_single" id="fu3tE_UJ:*]6B:!DZ1U;">
- <field name="OP">ABS</field>
- <value name="NUM">
- <shadow type="math_number" id="XPR9;tdU2*c{Sb,K6InG">
- <field name="NUM">9</field>
- </shadow>
- <block type="math_arithmetic" id="}8S[7`?S)~REwC3=8I3v">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="[DSp8g[#*y=A}69:|{J;">
- <field name="NUM">1</field>
- </shadow>
- <block type="goal_x" id="hdB_Rq.B6,1|t@bQ[xJt"></block>
- </value>
- <value name="B">
- <shadow type="math_number" id="|uTeyud/yB+hK:}xG+ED">
- <field name="NUM">1</field>
- </shadow>
- <block type="own_x" id="5#xa%nFRr)ER{~*~ALF^"></block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="`=nzwU{1*:FQ-ZaD@%.J">
- <field name="NUM">0.1</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO">
- <block type="variables_set" id=";X:3i{cG*hbeF4(q`YEq">
- <field name="VAR" id="d/EpjIBO3f!]-)RZ_m.A" variabletype="">left</field>
- <value name="VALUE">
- <block type="lists_getIndex" id="At?QcH!Lf2Jb}vBdCFBd">
- <mutation statement="false" at="false"></mutation>
- <field name="MODE">GET</field>
- <field name="WHERE">LAST</field>
- <value name="VALUE">
- <block type="angle_obstacle" id=")vmJIw2d2|H$:N/O9CeQ">
- <value name="angle">
- <block type="math_number" id="FmqF2(^1@/=`iZiGL-4E">
- <field name="NUM">90</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="q!]:eC;Jp}SC5b-h-E#=">
- <field name="VAR" id="Su{TSoYB(9X1oITn*I%{" variabletype="">right</field>
- <value name="VALUE">
- <block type="lists_getIndex" id="#u4qmi..h!ABgTq`)}o-">
- <mutation statement="false" at="false"></mutation>
- <field name="MODE">GET</field>
- <field name="WHERE">LAST</field>
- <value name="VALUE">
- <block type="angle_obstacle" id="6Knye8xUe/92bl/ar}aS">
- <value name="angle">
- <block type="math_number" id="NFPT%MOkY-ew]Xvzf:@}">
- <field name="NUM">-90</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <next>
- <block type="controls_if" id="HN4PYvuVa/%hLZ=-g`ZB">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_compare" id="%o.(7sh!]X.#G0!o5RMX">
- <field name="OP">GT</field>
- <value name="A">
- <block type="variables_get" id="#Q|t9ERy8$QZJr.t?=D2">
- <field name="VAR" id="Su{TSoYB(9X1oITn*I%{" variabletype="">right</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="0W8@5$_%`2(ZACq@_{t)">
- <field name="NUM">0.6</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="turn_turtle_angle" id=".if%nA3ln9Kr$T;vYOy[">
- <field name="direction">RIGHT</field>
- <field name="angle">25</field>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_compare" id="huT[1M7kWT5hXz~Ipg1*">
- <field name="OP">LT</field>
- <value name="A">
- <block type="variables_get" id="0YaslPKpr)!xhOHN;6Xh">
- <field name="VAR" id="Su{TSoYB(9X1oITn*I%{" variabletype="">right</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="v_L8.u~lr7$-aL$v46K%">
- <field name="NUM">0.35</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="turn_turtle_angle" id="=piTG~Uqgg?owUctig?!">
- <field name="direction">LEFT</field>
- <field name="angle">25</field>
- </block>
- </statement>
- <next>
- <block type="move_turtlebot_distance" id="$KhcF,ky4T]7Q7sZEL5Q">
- <value name="Distance">
- <block type="math_number" id="K`z2Mf9jb!}#b/DZ#Ezn">
- <field name="NUM">0.5</field>
- </block>
- </value>
- <next>
- <block type="face_goal" id="n8ZN0$92Wy/tiFL*@O2(">
- <next>
- <block type="controls_if" id="k~N|5B6V#XIZS#1cHLEa">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id="YJQSJh)Be|rwK;%p[p6)">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="~uwnN95GDT-R5jx9}e4F">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="line_of_sight" id="[m+5M9P+x)FU#8dnm-Kz"></block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="e6;5FT^(?!6.Y/8MfTGe">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="`ffxfQZ-qg4TEW+[@*ZW">
- <field name="OP">GT</field>
- <value name="A">
- <block type="angle_obstacle" id="fEiK3vWMiB)PeTvzO1Sq">
- <value name="angle">
- <shadow type="constrained_number" id="_+U{q[`2%EY6sQQjcqAm">
- <field name="NAME">0</field>
- </shadow>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="get_goal_distance" id="KXGgzB{z5Y.+?%VW|cC@"></block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="move_turtlebot_distance" id="z(`+5FuS.Ipoxm6lV#bv">
- <value name="Distance">
- <block type="get_goal_distance" id="hMp7n.10;NXS:I4#T@`G"></block>
- </value>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="turn_turtle_angle" id="`-U6}4_iZ:^aXWQA,Y0m">
- <field name="direction">LEFT</field>
- <field name="angle">90</field>
- <next>
- <block type="move_turtlebot_distance" id="-%s]j-k~1j8/^75c@7-[">
- <value name="Distance">
- <block type="math_number" id="=dI]mx-O?6[lx]]RB8]A">
- <field name="NUM">1</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="ros_basic_log" id="%nMXrG-xjj^F?L_U.Sni">
- <value name="INFO">
- <block type="text" id="d2!lKkU{2amkHZ.#h}0U">
- <field name="TEXT">Done</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement