From c4af32d8555e4808a9376aacf9e14ce417e605f3 Mon Sep 17 00:00:00 2001 From: Olivier Stasse <ostasse@laas.fr> Date: Tue, 20 Dec 2016 15:07:21 +0100 Subject: [PATCH] Fix compilation pb with model.nbody -> model.nbodies --- src/ros_joint_state.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ros_joint_state.cpp b/src/ros_joint_state.cpp index 4837afe..1ff7087 100644 --- a/src/ros_joint_state.cpp +++ b/src/ros_joint_state.cpp @@ -38,12 +38,12 @@ namespace dynamicgraph namespace { void buildJointNames (sensor_msgs::JointState& jointState, se3::Model* robot_model) { int cnt = 0; - for (int i=1;i<robot_model.nbody;i++) { + for (int i=1;i<robot_model->nbodies;i++) { // Ignore anchors. if (se3::nv(robot_model->joints[i]) != 0) { // If we only have one dof, the dof name is the joint name. if (se3::nv(robot_model->joints[i]) == 1) { - jointState.name[cnt] = robot_model.names[i]; + jointState.name[cnt] = robot_model->names[i]; cnt++; } else { @@ -86,7 +86,7 @@ namespace dynamicgraph } se3::Model* robot_model = dynamic->m_model; - if (robot_model->nbody == 1) + if (robot_model->nbodies == 1) { std::cerr << "no robot in the dynamic entity" << std::endl; return Value (); -- GitLab