0
$\begingroup$

Rosanswers logo

Can anyone suggest how to create an OpenGL function (no OGRE dependencies) that renders the PR2? That is, I hope to construct a function that looks like:

void openGLRenderPR2 (JointState);

I imagine this would be of use to many people who are using visualization tools outside of rviz (and without OGRE dependencies).

Thanks!

Mike


Originally posted by mfleder on ROS Answers with karma: 9 on 2012-04-01

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

It is actually not that easy. You first need to read in the robot description from urdf, there is a library for doing so. Then you to load all meshes. rviz used to use assimp for doing that. Finally, you need a tf listener to get the current pose of all links specified in the urdf.

I implemented the functionality for rendering the PR2 in common lisp, stack cram_physics and I think Bosch's pr2_camera_self_filter contains some code for rendering the PR2 in C++.


Originally posted by Lorenz with karma: 22731 on 2012-04-05

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.