Skip to content

Commit

Permalink
fix the expected length of acc array in setJointAnglesSequenceFull.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Nov 21, 2015
1 parent a3f5f4f commit 4db3f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtc/SequencePlayer/SequencePlayerService_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ CORBA::Boolean SequencePlayerService_impl::setJointAnglesSequenceFull(const dSeq
std::cerr << __PRETTY_FUNCTION__ << " length of joint accocitys sequence and time sequence differ, joint accocity:" << accs.length() << ", time:" << tms.length() << std::endl;
return false;
}
if ( acc.length() != (unsigned int)(m_player->robot()->numJoints())) {
if ( acc.length() != 3) {
std::cerr << __PRETTY_FUNCTION__ << " num of joint is differ, input:" << jvs.length() << ", acc:" << acc.length() << ", robot" << (unsigned int)(m_player->robot()->numJoints()) << std::endl;
return false;
}
Expand Down

0 comments on commit 4db3f8c

Please sign in to comment.