Comments (3)
I pushed this feature just now. You can do
for (auto &colBody : aliengo->getCollisionBodies()) {
colBody.setCollisionMask(-1);
colBody.setCollisionGroup(-1);
}
will add this to doc tmr
from raisimlib.
The default collision behavior was "or" which means mask2 & group1 || mask1 & group2
. I changed the logic to and
. It should work now
from raisimlib.
Thank you very much!
Follow-up question, is there a mask that disables all contact?
I tried the following:
/// Disable all contacts
const bool enable = false;
for (auto& colBody : robot->getCollisionBodies()) {
// Set some non-default collision group
const auto col_group = raisim::COLLISION(99);
colBody.setCollisionGroup(col_group);
// Either let it only collide with itself, or with everything (= -1)
if (enable) {
colBody.setCollisionMask(-1);
} else {
colBody.setCollisionMask(0);
}
}
And linking it only with its own group:
colBody.setCollisionMask(raisim::COLLISION(99));
But in both cases my robot still lands on the floor (while I want it to go through it)
from raisimlib.
Related Issues (20)
- Reliability of getPairContactIndexInPairObject() HOT 5
- Stable baselines evaluation error HOT 7
- The norm of quaternion in raisim state is not exactly 1.0 HOT 1
- png or jpg HOT 1
- About Generate Terrain in Raisim HOT 2
- About licensing issues HOT 1
- visualArrow not appearing on raisimUnity HOT 2
- Unity Connection Issue HOT 4
- Build error on ubuntu HOT 2
- Failed to cmake HOT 1
- Does slip occur in the Raisim simulator? HOT 1
- Where to place the activation key HOT 1
- Running RaisimUnity with integrated GPU HOT 7
- RaisimUnity visualArrow Not working as expected HOT 3
- RaisimServer bind error HOT 2
- Keyboard/Mouse Integration HOT 1
- Definition of the advantage function in the runner.py HOT 1
- Getting contacts of consumed links HOT 1
- Illegal instruction (core dumped) HOT 8
- Version mismatch. Raisim protocol version: 10014, Visualizer protocol version: 10013 HOT 12
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 raisimlib.