File tree 1 file changed +6
-8
lines changed
session/crane_planner_plugins/include/crane_planner_plugins
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,12 @@ class AttackerSkillPlanner : public PlannerBase
55
55
}
56
56
if (world_model->ball .isMoving ()) {
57
57
{
58
- SvgLineBuilder line_builder;
59
- line_builder.start (world_model->ball .pos )
60
- .end (
61
- world_model->ball .pos +
62
- world_model->ball .vel .normalized () * world_model->getBallDistanceHorizon ())
63
- .stroke (" red" )
64
- .strokeWidth (30 );
65
- visualizer->add (line_builder.getSvgString ());
58
+ SvgPolyLineBuilder polyline_builder;
59
+ for (auto [point, distance]: world_model->getBallSequence (2.0 , 0.1 )) {
60
+ polyline_builder.addPoint (point);
61
+ }
62
+ polyline_builder.stroke (" orange" , 0.3 ).strokeWidth (100 );
63
+ visualizer->add (polyline_builder.getSvgString ());
66
64
}
67
65
}
68
66
auto status = skill->run ();
You can’t perform that action at this time.
0 commit comments