10 Commits

Author SHA1 Message Date
39f548a79d Refactor task_3.py: rename and restructure functions for clarity and improved execution flow. Introduced pass_up_down function and redefined run_task_3 to enhance task management. 2025-05-28 06:01:57 +00:00
aaa5ee7215 更新task_3.py,增强爬坡和下坡阶段的监测功能,添加姿态判断参数,优化稳定性检测逻辑,使用滑动窗口记录高度和俯仰角,提升代码可读性和执行效率。 2025-05-28 13:05:02 +08:00
918f5f20c5 新增go_to_x_v2函数以支持机器人移动到指定x坐标,更新task_3.py以引入新函数并调整稳定性检测参数,优化代码逻辑和文件处理。 2025-05-28 04:52:38 +00:00
92b2d40826 重构task_3的文件路径处理,移除file_dir参数,简化文件读取逻辑。更新Gait_Params_up.toml和Gait_Def_up.toml的路径为相对路径,优化代码可读性。 2025-05-28 11:45:55 +08:00
2e71879c25 refactor(main.py, base_move/turn_degree.py, task_3.py): update rotation functions and task execution flow
- Enabled execution of run_task_3 in main.py by uncommenting the function call.
- Updated turn_degree function to include a new version (turn_degree_v2) for enhanced rotation control.
- Adjusted the stable count threshold in turn_degree for improved stability detection.
- Replaced calls to turn_degree with turn_degree_v2 in task_3.py for better precision during rotations.
- Cleaned up commented-out code in task_3.py to streamline execution flow.
2025-05-28 03:13:48 +00:00
d89aca3b7a refactor(main.py, task_3.py, task_test.py): update task execution flow and enhance control logic
- Commented out run_task_3 in main.py to prevent execution during testing.
- Modified turn_degree function to set precision to True for improved control.
- Removed the unnecessary task_3/main copy.py file.
- Updated run_task_3 in task_3.py to improve gait file handling and control logic.
- Adjusted parameters for stability detection and added checks for descending phases.
- Updated task_test.py to focus on straight movement while commenting out previous commands.
2025-05-26 11:37:50 +00:00
7b106c03dc refactor(task_3): update gait processing and enhance control logic
- Refactored gait processing in main.py to load parameters from Gait_Params_up.toml and publish user gait files.
- Improved control logic in task_3.py to monitor Z-axis speed and detect climbing phases.
- Added functionality for straight movement after task completion.
- Cleaned up commented-out code and ensured consistent message handling.
2025-05-26 06:11:09 +00:00
952524dc63 refactor(task_3): remove unnecessary code and update functionality
- Remove redundant LCM initialization and file writing in main.py
- Update file paths in task_3.py to use relative paths
- Replace ctrl.Send_msg() with ctrl.Send_cmd(msg) for consistency
- Add import lcm in task_3.py
- Update main.py to focus on user gait list processing
2025-05-25 18:31:29 +00:00
938b0f8a86 更新任务3实现:引入机器人命令字典,优化步态文件加载与发送逻辑,支持用户自定义步态切换。增加异常处理以应对中断情况。 2025-05-26 02:06:04 +08:00
5ab480d507 重构(main.py): 移除任务4并引入任务3
- 注释掉MarkerRunner相关代码
- 替换任务4为任务3的调用
- 在place_marker函数中添加返回None以避免错误
2025-05-26 01:52:30 +08:00