# openvmp-models **Repository Path**: snowrobot/openvmp-models ## Basic Information - **Project Name**: openvmp-models - **Description**: 机器人模型库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-19 - **Last Updated**: 2024-01-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CAD models of [OpenVMP robots](https://github.com/openvmp/openvmp/) **Disclaimer**: This is a work in progress. Volunteers wanted to translate the existing FreeCAD models as well as photos of the real robot into CadQuery (Python) scripts. If you want to learn and practice CadQuery and help the community at the same time, please, reach out to [openvmp@proton.me](openvmp@proton.me). ## Introduction This repository contains detailed blueprints of [OpenVMP](https://github.com/openvmp/openvmp) robots. Since it contains large files by design and it's not required in most cases, this repository is kept as a separate optional submodule. This repository contains [the catalog of all parts](./parts/), how they look, how they can be manufactured or where they can be purchased. It also contains CadQuery scripts that codify [the blueprints of entire robots](./robots/), instructions how individual parts come together to form the robot. | Robot | Preview | | ---------------------- | --------------------------------------------------------------------------------- | | [Don1](./robots/don1/) | [Don1](./robots/don1/) | The default behavior of CadQuery scripts is extended to gerentate the following: - images and 3D models - bill of materials ### Images and 3D models [The main OpenVMP repository](https://github.com/openvmp/openvmp/) already contains all the necessary images and 3D models. However, as OpenVMP robots evolve and improve, all these files need to be regenerated to be rendered in documentation files and in simulation environments. ### Bill of materials OpenVMP can generate the bill of materials for each robot to make purchasing and inventorying easier. For example, the bill of materials for Don1 can be found in [./generated_files/robots/don1/bom.md](./generated_files/robots/don1/bom.md). ## Getting Started ### Rendering from command line Install prerequisites: ```sh sudo apt install -y python3-pip && pip3 install -r requirements.txt ``` Whenever the blueprints change, run `python3 ./parts/render.py` to generate updated part images. Run `python3 ./robots/render.py` to render robot images and STL files, including images and mesh files in `../platform/src/openvmp_robot_*`. ### Editing models in Visual Studio Code In a terminal window, run `cd models && cq-server run `, where `path` is either `robots/` or `parts//`. In VS Code, use the 'SimpleBrowser' extension to navigate to `http://127.0.0.1:5000/` (to connect to the default port exposed by `cq-server`). Also, the rendered SVG files can be seen in the markdown preview views. ### Editing models in CadQuery Editor ```sh cd models && CQ-editor robots//robot.py ```