Skip to content
Snippets Groups Projects
Commit c4af32d8 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Fix compilation pb with model.nbody -> model.nbodies

parent 6e591a31
No related branches found
No related tags found
No related merge requests found
......@@ -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 ();
......
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