wangzhengquan
2020-09-17 a4d90ebc6a31b9948ecee74189fe1423589e1f4c
udpate
4个文件已修改
8 ■■■■■ 已修改文件
algorithm/include/IndirectAlg.h 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test/Makefile 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
test/test_right_walk 补丁 | 查看 | 原始文档 | blame | 历史
test/test_right_walk.c 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
algorithm/include/IndirectAlg.h
@@ -35,8 +35,9 @@
    IndirectAlg(const std::initializer_list<Edge> & edges, const Vector2 & _directionconst , const time_t & _keepTime, const double _minDistance);
    /**
     * @points  组成观测区域的彼此相邻的点
     * @_keepTime 保持时间
     * @_direction 正确行进的方向方向
     * @_keepTime 保持时间
     * @minDistance 最小移动距离,要超过这个距离才算移动
     */
    IndirectAlg(const std::initializer_list<Point> & points, const Vector2 & _direction, const time_t & _keepTime, const double _minDistance);
test/Makefile
@@ -8,7 +8,7 @@
include $(ROOT)/Make.defines.$(PLATFORM)
PROGS = test_right_walk3
PROGS = test_right_walk test_right_walk3
    
test/test_right_walk
Binary files differ
test/test_right_walk.c
@@ -6,7 +6,8 @@
int test2() {
    // IndirectAlg indirectAlg({  {{0.0, 0.0}, {1000.0, 0.0}}, {{1000.0, 0.0}, {1000.0, 1000.0}}, {{1000.0, 1000.0}, {0.0, 1000.0}}, {{0.0, 1000.0}, {0.0, 0.0}} }, 5, {1, 1});
    
    IndirectAlg indirectAlg((std::initializer_list<Point>){{0.0, 0.0}, {1000.0, 0.0},  {1000.0, 1000.0}, {0.0, 1000.0} }, 5, {1, 1});
    IndirectAlg indirectAlg((std::initializer_list<Point>){{0.0, 0.0}, {1000.0, 0.0},  {1000.0, 1000.0}, {0.0, 1000.0} },
      {1, 1}, 5, 2);
    
    int i = 0;
    time_t start_time;