Skip to content
Snippets Groups Projects
Commit 707ddc4d authored by Fabian Reister's avatar Fabian Reister
Browse files

ArViz/HumanPose: removing hard coded model ids

parent 33575cf8
No related branches found
No related tags found
1 merge request!141feature: Azure Kinect Body Tracking SDK
......@@ -4,7 +4,8 @@
#include <VisionX/libraries/ArViz/HumanPoseK4ABTBody32.h>
#include <VisionX/libraries/ArViz/HumanPoseBody25.h>
#include <VisionX/libraries/human/pose/model/k4a_bt_body_32.h>
#include <VisionX/libraries/human/pose/model/openpose_body_25.h>
namespace armarx
{
......@@ -14,11 +15,14 @@ namespace armarx
viz::Layer& layer,
const std::string& prefix)
{
if (pose.poseModelId == "BODY_25")
namespace k4a_bt_body_32 = human::pose::model::k4a_bt_body_32;
namespace openpose_body_25 = human::pose::model::openpose_body_25;
if (pose.poseModelId == openpose_body_25::ModelId)
{
body_25::addPoseToLayer(pose, layer, prefix);
}
else if (pose.poseModelId == "K4ABT_BODY_32")
else if (pose.poseModelId == k4a_bt_body_32::ModelId)
{
k4abt_body_32::addPoseToLayer(pose, layer, prefix);
}
......
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