Comments (2)
I inadvertently changed the shape of self.pos in the _housekeeping function. As a result, the iteration through the drones in _updateAndStoreKinematicInfo was creating an error. This was my error.
from gym-pybullet-drones.
EDIT: ok, thanks, never mind :D
Thanks @hooverryan, script
python fly.py
works fine on macOS and Ubuntu, can you check if replacing _updateAndStoreKinematicInfo with this
def _updateAndStoreKinematicInfo(self):
for i in range (self.NUM_DRONES):
#self.pos[i], self.quat[i] = p.getBasePositionAndOrientation(self.DRONE_IDS[i], physicsClientId=self.CLIENT)
#self.rpy[i] = p.getEulerFromQuaternion(self.quat[i])
#self.vel[i], self.ang_v[i] = p.getBaseVelocity(self.DRONE_IDS[i], physicsClientId=self.CLIENT)
pos, quat = p.getBasePositionAndOrientation(self.DRONE_IDS[i], physicsClientId=self.CLIENT)
self.pos[i] = np.array(pos); self.quat[i] = np.array(quat)
self.rpy[i] = p.getEulerFromQuaternion(self.quat[i])
vel, ang_v = p.getBaseVelocity(self.DRONE_IDS[i], physicsClientId=self.CLIENT)
self.vel[i] = np.array(vel); self.ang_v[i] = np.array(ang_v)
circumvents the problem?
from gym-pybullet-drones.
Related Issues (20)
- ModuleNotFoundError: No module named 'gym_pybullet_drones' HOT 3
- Have you ever comfirm controlling one drone with "rpm" using learn.py ? HOT 14
- PX4 integration HOT 1
- Cannot run simulation on linux Fedora HOT 9
- Question about action buffer HOT 2
- Custom training environment HOT 4
- Questions Related to Multiagent Evaluation HOT 8
- How can I use the NVIDIA GPU in Docker to run this project? HOT 2
- self.TIMESTEP not defined in BaseAviary Class HOT 1
- A Drag function mistake HOT 1
- ResetBasePositionAndOrientation didn't work while simulation is running. HOT 1
- is there a specific ordinary differential equation (ODE) of model system? HOT 1
- RPM Motor Mapping HOT 6
- Some camera associated issues HOT 1
- What does pycffirmware do HOT 1
- run learn.py
- rgb and GL HOT 2
- path planning algorithms HOT 1
- Ctrl Freq and Simulation Freq Questions HOT 3
- Clarification on Each Dimension's Meaning for ActionType.VEL HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gym-pybullet-drones.