48 int main(
int argc,
char *argv[])
50 ::ros::init(argc, argv,
"hyq_urdf_visualizer");
52 const std::string joint_desired_hyq =
"xpp/joint_hyq_des";
54 auto hyq_ik = std::make_shared<InverseKinematicsHyq4>();
60 int n_ee = hyq_ik->GetEECount();
62 std::vector<UrdfVisualizer::URDFName> joint_names(n_ee*n_j);
63 joint_names.at(n_j*
LF +
HAA) =
"lf_haa_joint";
64 joint_names.at(n_j*
LF +
HFE) =
"lf_hfe_joint";
65 joint_names.at(n_j*
LF +
KFE) =
"lf_kfe_joint";
66 joint_names.at(n_j*
RF +
HAA) =
"rf_haa_joint";
67 joint_names.at(n_j*
RF +
HFE) =
"rf_hfe_joint";
68 joint_names.at(n_j*
RF +
KFE) =
"rf_kfe_joint";
69 joint_names.at(n_j*
LH +
HAA) =
"lh_haa_joint";
70 joint_names.at(n_j*
LH +
HFE) =
"lh_hfe_joint";
71 joint_names.at(n_j*
LH +
KFE) =
"lh_kfe_joint";
72 joint_names.at(n_j*
RH +
HAA) =
"rh_haa_joint";
73 joint_names.at(n_j*
RH +
HFE) =
"rh_hfe_joint";
74 joint_names.at(n_j*
RH +
KFE) =
"rh_kfe_joint";
76 std::string
urdf =
"hyq_rviz_urdf_robot_description";
78 joint_desired_hyq,
"hyq_des");
int main(int argc, char *argv[])
static const std::string robot_state_desired("/xpp/state_des")