| 33 | } |
| 34 | |
| 35 | nav_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 | |
| 48 | geometry_msgs::msg::PoseStamped TestPathGenerator::GetNextPoint() |
| 49 | { |
nothing calls this directly
no outgoing calls
no test coverage detected