MCPcopy Create free account
hub / github.com/RoboJackets/software-training / BuildPath

Method BuildPath

controllers/src/test_path_generator.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35nav_msgs::msg::Path TestPathGenerator::BuildPath()
36{
37 nav_msgs::msg::Path path;
38 t_ = 0.0;
39 std::generate_n(std::back_inserter(path.poses), point_count_, [this] {return GetNextPoint();});
40 t_delta_ = -t_delta_;
41 t_ += t_delta_;
42 std::generate_n(
43 std::back_inserter(path.poses), point_count_ - 1,
44 [this] {return GetNextPoint();});
45 return path;
46}
47
48geometry_msgs::msg::PoseStamped TestPathGenerator::GetNextPoint()
49{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected