Added print to print out new calculated width

This commit is contained in:
2026-03-24 20:40:14 +01:00
parent 0105984458
commit c7caa69bfa
3 changed files with 106 additions and 15 deletions

View File

@@ -2,17 +2,22 @@
<root BTCPP_format="4">
<BehaviorTree ID="track_calib">
<Sequence>
<SetBlackboard value="0.264"
<SetBlackboard value="0.265"
output_key="width"/>
<Sleep msec="1000"/>
<ZeroOdom service_name=""/>
<RotateTowards x="0.4"
y="0.0"
max_speed="0.000000"
min_angle="0.000000"
action_name=""/>
<Sequence>
<Sleep msec="1000"/>
<MovePointSimple x="-0.4"
<MovePointSimple x="0.4"
y="0"
theta="0"
max_speed="0.10000"
backwards="true"
backwards="false"
action_name=""/>
<Sleep msec="500"/>
<RotateSimple angle="0"
@@ -22,11 +27,11 @@
</Sequence>
<ForceSuccess>
<Timeout msec="13000">
<MovePointSimple x="1.0"
<MovePointSimple x="-1.0"
y="0"
theta="0"
max_speed="0.070000"
backwards="false"
backwards="true"
action_name=""/>
</Timeout>
</ForceSuccess>
@@ -76,6 +81,8 @@
action_name=""/>
</Timeout>
</ForceSuccess>
<Sleep msec="1000"/>
<EndCalib service_name=""/>
</Sequence>
</BehaviorTree>
@@ -84,17 +91,21 @@
<Sleep msec="1000"/>
<ZeroOdom service_name=""/>
<Sleep msec="1000"/>
<MovePointSimple x="-1.200"
<MovePointSimple x="1.200"
y="0"
theta="0"
max_speed="0.250000"
backwards="true"
backwards="false"
action_name=""/>
</Sequence>
</BehaviorTree>
<!-- Description of Node Models (used by Groot) -->
<TreeNodesModel>
<Action ID="EndCalib">
<input_port name="service_name"
type="std::string">Service name</input_port>
</Action>
<Action ID="MovePointSimple">
<input_port name="x"
type="double"/>
@@ -123,6 +134,20 @@
<input_port name="action_name"
type="std::string">Action server name</input_port>
</Action>
<Action ID="RotateTowards">
<input_port name="x"
type="double"/>
<input_port name="y"
type="double"/>
<input_port name="max_speed"
default="0.000000"
type="double"/>
<input_port name="min_angle"
default="0.000000"
type="double"/>
<input_port name="action_name"
type="std::string">Action server name</input_port>
</Action>
<Action ID="SetWidth">
<input_port name="width"
type="double"/>