Skip to content

Commit

Permalink
fixed joint message iterating in state estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyPoint committed Feb 1, 2021
1 parent f6dd1c0 commit 802f5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion champ_base/src/state_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void StateEstimation::synchronized_callback_(const sensor_msgs::JointStateConstP

float current_joint_positions[12];

for(size_t i = 0; i < 12; i++)
for(size_t i = 0; i < joints_msg->name.size(); i++)
{
std::vector<std::string>::iterator itr = std::find(joint_names_.begin(), joint_names_.end(), joints_msg->name[i]);

Expand Down

0 comments on commit 802f5c8

Please sign in to comment.