Skip to content
Snippets Groups Projects
Commit 6b9a384f authored by Markus Grotz's avatar Markus Grotz
Browse files

add collision model parameter for robot visu

Load the collision model of a robot if specified.  The user is now
unable to switch between the different visualization modes. However,
loading the collision model uses less memory.
parent 10845189
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,10 @@ namespace armarx::viz::coin
{
// Always load full model. Visualization can choose between full and collision model
VirtualRobot::RobotIO::RobotDescription loadMode = VirtualRobot::RobotIO::eFull;
if (data::ModelDrawStyle::COLLISION)
{
loadMode = VirtualRobot::RobotIO::eCollisionModel;
}
ARMARX_INFO << "Loading robot from " << fullFilename;
result = VirtualRobot::RobotIO::loadRobot(fullFilename, loadMode);
result->setThreadsafe(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment