当前位置:网站首页>Win10 install pytullet and test
Win10 install pytullet and test
2022-07-03 05:16:00 【Qianyu QY】
install
pip install pybullet
Possible problems :
1、microsoft visual c++ 14.0 or greater is required.
solve : visit http://go.microsoft.com/fwlink/?LinkId=691126, Install downloaded files .
test
import pybullet as p
from time import sleep
physicsClient = p.connect(p.GUI)
p.setGravity(0, 0, -10)
# planeId = p.loadURDF("plane.urdf")
cubeStartPos = [0, 0, 1]
cubeStartOrientation = p.getQuaternionFromEuler([0, 0, 0])
boxId = p.loadURDF("path_to_urdf", cubeStartPos, cubeStartOrientation)
cubePos, cubeOrn = p.getBasePositionAndOrientation(boxId)
useRealTimeSimulation = 0
if (useRealTimeSimulation):
p.setRealTimeSimulation(1)
while 1:
if (useRealTimeSimulation):
p.setGravity(0, 0, -10)
sleep(0.01) # Time in seconds.
else:
p.stepSimulation()
Possible problems :
1、pybullet.error: cannot load urdf file.
solve :path_to_urdf Write absolute path .
2、b3Printf: path_to_urdf.urdf:15: cannot find ‘path_to_urdf.obj’ in any directory in urdf path
solve :urdf The folder you are in needs to contain model files , take path_to_urdf.obj Put it in path_to_urdf.urdf Under the same directory of .
Final result :

Reference resources :https://blog.csdn.net/weixin_41045354/article/details/104534581
边栏推荐
- Detailed explanation of yolov5 training own data set
- About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
- [basic grammar] C language uses for loop to print Pentagram
- Introduction to deep learning - definition Introduction (I)
- Shuttle + alluxio accelerated memory shuffle take-off
- Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in
- Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)
- XML Configuration File
- 1094 the largest generation (25 points)
- Go practice - gorilla / handlers used by gorilla web Toolkit
猜你喜欢
![[basic grammar] C language uses for loop to print Pentagram](/img/9e/021c6c0e748e0981d4233f74c83e76.jpg)
[basic grammar] C language uses for loop to print Pentagram

JS dynamic table creation

(subplots usage) Matplotlib how to draw multiple subgraphs (axis field)

Three representations of signed numbers: original code, inverse code and complement code

Kept hot standby and haproxy

Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in

Class loading mechanism (detailed explanation of the whole process)

5-36v input automatic voltage rise and fall PD fast charging scheme drawing 30W low-cost chip

The principle is simple, but I don't know how to use it? Understand "contemporaneous group model" in one article

Botu uses peek and poke for IO mapping
随机推荐
Go language interface learning notes Continued
Introduction to deep learning (II) -- univariate linear regression
Without 50W bride price, my girlfriend was forcibly dragged away. What should I do
1114 family property (25 points)
[batch dos-cmd command - summary and summary] - CMD window setting and operation command - close CMD window and exit CMD environment (exit, exit /b, goto: EOF)
Introduction to deep learning - definition Introduction (I)
乾元通多卡聚合路由器的技术解析
联想R7000显卡的拆卸与安装
Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in
Audio Focus Series: write a demo to understand audio focus and audiomananger
"Hands on deep learning" pytorch edition Chapter II exercise
[research materials] the fourth quarter report of the survey of Chinese small and micro entrepreneurs in 2021 - Download attached
Redis 过期淘汰机制
Common methods of JS array
Messy change of mouse style in win system
Based on RFC 3986 (unified resource descriptor (URI): general syntax)
ES7 easy mistakes in index creation
Technical analysis of qianyuantong multi card aggregation router
1118 birds in forest (25 points)
Promise