Make Pinocchio executable

本文介绍如何使用Visual Studio 2008和Windows SDK v6.0A来搭建FLTK 1.1.9的开发环境。主要内容包括升级Pinocchio解决方案到VS2008版本并进行构建运行,特别强调了正确安装FLTK和设置环境变量的重要性。
部署运行你感兴趣的模型镜像

The tools I have is VS2008, Windows SDK v6.0A, fltk-1.1.9.

Open the Pinocchio.sln, upgrade to vs2008 version, just build and run.

Things must be noticed:

1. Install fltk correctly!

2. Add FLTKDIR to environment variable

您可能感兴趣的与本文相关的镜像

Qwen3-8B

Qwen3-8B

文本生成
Qwen3

Qwen3 是 Qwen 系列中的最新一代大型语言模型,提供了一整套密集型和专家混合(MoE)模型。基于广泛的训练,Qwen3 在推理、指令执行、代理能力和多语言支持方面取得了突破性进展

(lerobot) zwz@ubuntu:~/lerobot$ pip install placo --no-build-isolation Collecting placo Using cached placo-0.9.14.tar.gz (136 kB) Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [51 lines of output] -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE CMake Error at CMakeLists.txt:5 (find_package): By not providing "Findpinocchio.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "pinocchio", but CMake did not find one. Could not find a package configuration file provided by "pinocchio" with any of the following names: pinocchioConfig.cmake pinocchio-config.cmake Add the installation prefix of "pinocchio" to CMAKE_PREFIX_PATH or set "pinocchio_DIR" to a directory containing one of the above files. If "pinocchio" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! Traceback (most recent call last): File "/home/zwz/anaconda3/envs/lerobot/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/zwz/anaconda3/envs/lerobot/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/home/zwz/anaconda3/envs/lerobot/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) File "/home/zwz/anaconda3/envs/lerobot/lib/python3.10/site-packages/cmeel/build.py", line 26, in build_wheel return build_impl(wheel_directory, editable=False) File "/home/zwz/anaconda3/envs/lerobot/lib/python3.10/site-packages/cmeel/impl.py", line 100, in build_impl check_call(configure_cmd, env=configure_env) File "/home/zwz/anaconda3/envs/lerobot/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '-S', '.', '-B', '/tmp/cmeel-z2wax7hq/bld', '-DBoost_NO_WARN_NEW_VERSIONS=ON', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_LIBDIR=lib', '-DCMAKE_INSTALL_PREFIX=/tmp/cmeel-z2wax7hq/whl/cmeel.prefix', '-DPYTHON_SITELIB=lib/python3.10/site-packages', '-DPython3_EXECUTABLE=/home/zwz/anaconda3/envs/lerobot/bin/python3.10', '-DCMAKE_APPLE_SILICON_PROCESSOR=arm64', '-DCMEEL_JOBS=4', '-DBUILD_TESTING=OFF']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
07-31
### Pinocchio简介及其应用 Pinocchio 是一个多刚体动力学计算的开源库,支持 C++ 和 Python 编程语言[^3]。它广泛应用于机器人领域,特别是在仿真和控制方面。通过该库可以实现高效的前向和反向动力学计算、惯性参数估计以及运动规划等功能。 #### Pinocchio的主要功能 - **高效的动力学计算**:提供快速的关节空间和操作空间的动力学求解器。 - **丰富的接口支持**:兼容多种编程环境,尤其是 Python 接口使得科研人员能够更便捷地开发算法并进行测试。 - **易于集成**:可以通过 `CMake` 配置文件轻松引入到项目中[^2],从而与其他工具链无缝衔接。 #### PyBullet联合调试案例 为了进一步扩展其能力范围,在某些情况下会将 Pinocchio 与物理引擎如 PyBullet 结合起来使用。这种组合允许开发者构建更加真实的模拟场景来验证理论模型的有效性。具体来说,存在一个名为 pinocchio_bullet_wrapper.py 的脚本用于促进两者之间的交互过程[^1]。 以下是简单的代码片段展示如何初始化此类封装类对象: ```python from pinocchio.robot_wrapper import RobotWrapper import pybullet as p class BulletRobot(RobotWrapper): def __init__(self, urdfName): self.client = p.connect(p.DIRECT) super(BulletRobot,self).__init__("/path/to/urdfs/" + urdfName) robot = BulletRobot('my_robot.urdf') print(robot.model) ``` 上述例子展示了创建自定义子类继承自标准 RobotWrapper 类型,并重写构造函数以便加载特定URDF描述文档的过程。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值