# Geek_Program_Template **Repository Path**: geekros/Geek_Program_Template ## Basic Information - **Project Name**: Geek_Program_Template - **Description**: Geek_Program_Template项目模板 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-04 - **Last Updated**: 2023-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Geek_Program_Template > Geek Studio软件包适配模板,基于该模板可以适配自己的开发板或机器人设备。 ### 软件包目录结构说明 > 在接入自己的硬件前,请熟知软件包目录结构规则。 ```python Geek_Program_Template │ README.md │ config.geekros # GeekStudio启动文件 └──blocks # 图形化编程程序目录 │ │ app.blocks # 图形化编辑器启动程序 └──hardware # 开发板程序目录 │ │ build # 开发板程序编译后固件生成目录 │ │ FreeRTOS # FreeRTOS支持库源码目录 │ │ Keil # 开发板对Keil编辑器支持的配置文件目录 │ │ │ Template.uvprojx # Keil编辑器项目配置文件 │ │ Source # 开发板程序源码目录 │ │ │ app # 用户程序目录 │ │ │ │ inc # 用户程序头文件目录 │ │ │ │ src # 用户程序源文件目录 │ │ │ │ │ app.c # 用户程序 │ │ │ main # 启动程序、任务程序目录 │ │ │ modular # 开发板外设程序目录 │ │ │ robot # 开发板机器人应用程序目录 │ │ │ utils # 开发板通用工具类程序目录 │ │ System # 发板芯片支持包源码目录 │ │ │ flash.ld # 开发板.LD文件配置文件 │ │ │ startup_gcc.s # 开发板GCC编译时需要的启动配置文件 │ │ │ startup_keil.s # 开发板Keil编译时需要的启动配置文件 │ │ make.lua # 开发板XMake+GCC编译所需的配置文件 └──launch # ROS Launch启动程序目录 │ │ launch.py # ROS Launch功能包、功能节点启动程序文件 └──software # Python编程程序目录 │ │ framework # Python程序框架目录 │ │ │ board # 开发板外设类通讯协议程序存放目录 │ │ │ robot # 开发板机器人类通讯协议程序存放目录 │ │ │ utils # Python程序框架核心工具包 │ │ app.py # 用户程序 └──world # 仿真模拟器资源目录 │ │ model # 3D模型资源目录 │ │ script # 自定义JS脚本目录 │ │ texture # 自定义贴图资源目录 │ │ app.world # 仿真编辑器启动程序 ``` ### 软件包相关依赖安装 > 软件包中的Python相关程序需要一些基础的依赖,需要对这些依赖软件包进行安装,让你软件包面向用户发布时,也应该引导用户进行这些依赖软件包的安装。 ```shell # 用于运行日志的个性化输出 sudo pip3 install colorlog -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn ``` ```shell # 用于消息通讯 python3 -m pip install websocket-client==0.48.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn ``` ```shell # 用于网络请求 python3 -m pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn ``` ```shell # 用于串口通讯 python3 -m pip install pyserial -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn ``` ```shell # 用于ROS2通讯 python3 -m pip install roslibpy -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn ```