【MR】C++ bullet客户端基于MR的动力学仿真
创始人
2024-03-26 03:25:30
0

程序基于(A minimal example showing how to use PyBullet from C++ over shared memory.一个展示如何在共享内存上从c++使用PyBullet的最小示例。

https://github.com/erwincoumans/pybullet_cpp_sharedmemory_example

)实现与pybullet服务器通信交互。加上MR的算法库进行pybullet交互仿真。MR的参数放在json文件内,通过jsoncpp库实现参数解析。

------------------------------------------------------------------------------

本篇内容

Python打开bullet服务器GUI

仿真视频

首先终端打开pybullet服务器GUI(以便C++ bullet客户端连接):

运行C++ bullet客户端(主程序代码):

读取的MR参数文件--控制台输出:

注:遇到Json读取MR参数文件报错string too long。需要

indy7类实现了以下功能:

------------------------------------------------------------------------------

7e0d1631f2bfd27dc3f50d910963ad91.pngPython打开bullet服务器GUI

仿真视频

首先终端打开pybullet服务器GUI(以便C++ bullet客户端连接):

PS C:\Users\cxy> python -m pybullet_utils.runServer
pybullet build time: Dec  4 2022 15:08:03
starting thread 0
started testThreads thread 0 with threadHandle 00000000000002D8
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
Version = 4.6.0 NVIDIA 512.52
Vendor = NVIDIA Corporation
Renderer = NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
b3Printf: Selected demo: Physics Server
starting thread 0
started MotionThreads thread 0 with threadHandle 0000000000000A04
MotionThreadFunc thread started
processing worldmerge base_link into world!relink shoulder_link from base_link to world!processing shoulder_linkprocessing upper_arm_linkprocessing forearm_linkprocessing wrist_1_linkprocessing wrist_2_linkprocessing wrist_3_linkmerge tcp into wrist_3_link!world (mass=0.000000)shoulder_link (mass=11.803010) (joint joint0, joint type=URDFRevoluteJointupper_arm_link (mass=7.992921) (joint joint1, joint type=URDFRevoluteJointforearm_link (mass=2.991341) (joint joint2, joint type=URDFRevoluteJointwrist_1_link (mass=2.123170) (joint joint3, joint type=URDFRevoluteJointwrist_2_link (mass=2.288651) (joint joint4, joint type=URDFRevoluteJoint

运行C++ bullet客户端(主程序代码):

上一篇:NN神经网络本质

下一篇:目标检测3

相关内容

热门资讯

每周股票复盘:华依科技(688... 截至2025年12月26日收盘,华依科技(688071)报收于33.81元,较上周的32.34元上涨...
每周股票复盘:文灿股份(603... 截至2025年12月26日收盘,文灿股份(603348)报收于19.23元,较上周的19.5元下跌1...
每周股票复盘:中邮科技(688... 截至2025年12月26日收盘,中邮科技(688648)报收于58.51元,较上周的58.49元上涨...
每周股票复盘:蓝科高新(601... 截至2025年12月26日收盘,蓝科高新(601798)报收于8.99元,较上周的8.98元上涨0....
每周股票复盘:红豆股份(600... 截至2025年12月26日收盘,红豆股份(600400)报收于2.42元,较上周的2.5元下跌3.2...
每周股票复盘:金证股份(600... 截至2025年12月26日收盘,金证股份(600446)报收于15.75元,较上周的15.46元上涨...
每周股票复盘:日盈电子(603... 截至2025年12月26日收盘,日盈电子(603286)报收于59.5元,较上周的57.11元上涨4...
每周股票复盘:盐 田 港(00... 截至2025年12月26日收盘,盐 田 港(000088)报收于4.53元,较上周的4.52元上涨0...
每周股票复盘:广电网络(600... 截至2025年12月26日收盘,广电网络(600831)报收于4.2元,较上周的4.36元下跌3.6...
每周股票复盘:新疆火炬(603... 截至2025年12月26日收盘,新疆火炬(603080)报收于22.85元,较上周的22.73元上涨...