-
Notifications
You must be signed in to change notification settings - Fork 26
Add API for easily adding markers/ghost robots and other visualizations #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
we could also add :
From my point of view, those quantities are not humanoid robot related but more floating base robot. And I don't know if it's already in the API, but we need to add a |
The convex hull, capture point, etc. might require additional libraries (KDL) and I am not sure we want to impose this by default. I am OK if we can compute it ourselves, however. One option is to leave these vizualisation in the 'client code' (the code that uses the simulator) and simply provide the API to display any marker. |
Indeed I am not sure if this can be done without additional libraries. @PedroDesRobots , can you show some code for this?
Yes the idea is to provide this 'generic' marker visualization and then the user can do whatever he/she wants. But it'd be nice to provide a few "frequently-used" ones.
It's not already, but this is not related to visualizations. For the ghost robots/visualizations, we should/will remove all the dynamics/collision aspects (DART-related) and then it automatically does not collide/update for dynamics. |
Maybe the easiest is CoM :
For Convex Hull :
The user has to provide If we want to do thing smarter, we can :
But like @jbmouret said, they might require additional libraries to perform that. |
I was talking about code to compute the convex hull. Not visualize it. How do you compute this |
There is no real computation at the moment. We stack a vector with contact points which exist inside the URDF (here it's the trick), then we took the transform directly of those points... I'm using a function inside the OpenSoT framework with PCL (not working with TSID yet).
and getConvexHull is computed like that :
The projection is not super relevant and there are no real difference at the end. From my point of view, it's enough to take the contact point's transform. |
We should add helper functions to RobotDARTSimu for easily adding visualization things. Here's a list:
@jbmouret @dalinel @PedroDesRobots let me know if you have something to add..
The text was updated successfully, but these errors were encountered: