Skip to content
Snippets Groups Projects
Commit 7c47b422 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

Merge branch 'devel' of github.com:proyan/jrl-walkgen into devel

* [c++][src/pinocchiorobot.cpp] body and BODY both are acceptable joint names
* add .version file

Conflicts:
	src/ZMPRefTrajectoryGeneration/nmpc_generator.cpp
	src/ZMPRefTrajectoryGeneration/nmpc_generator.hh
	tests/CMakeLists.txt
	tests/TestNaveau2015.cpp
parents c0c95dc8 a7f73bf8
No related branches found
No related tags found
No related merge requests found
4.0.1
\ No newline at end of file
......@@ -102,7 +102,7 @@ bool PinocchioRobot::checkModel(se3::Model * robotModel)
throw std::invalid_argument(exception_message);
return false ;
}
if(!robotModel->existFrame("BODY"))
if(!robotModel->existFrame("BODY") && !robotModel->existFrame("body"))
{
m_boolModel=false;
const std::string exception_message ("BODY is not a valid body name");
......@@ -146,7 +146,7 @@ bool PinocchioRobot::initializeRobotModelAndData(se3::Model * robotModel,
// initialize the short cut for the joint ids
se3::FrameIndex chest = m_robotModel->getFrameId("torso");
m_chest = m_robotModel->frames[chest].parent ;
se3::FrameIndex waist = m_robotModel->getFrameId("BODY");
se3::FrameIndex waist = (robotModel->existFrame("BODY"))?m_robotModel->getFrameId("BODY"):m_robotModel->getFrameId("body");
m_waist = m_robotModel->frames[waist].parent ;
se3::FrameIndex ra = m_robotModel->getFrameId("r_ankle");
m_rightFoot.associatedAnkle = m_robotModel->frames[ra].parent ;
......
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