Skip to content

Commit

Permalink
Replace boost::split with urdf::split_string
Browse files Browse the repository at this point in the history
Included from urdf_model/utils.h
  • Loading branch information
scpeters committed Jul 20, 2016
1 parent 511d48f commit 17d8c73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions urdf_parser/src/urdf_model_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@


#include <urdf_model_state/model_state.h>
#include <urdf_model/utils.h>
#include <fstream>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <algorithm>
#include <tinyxml.h>
Expand Down Expand Up @@ -92,7 +92,7 @@ bool parseModelState(ModelState &ms, TiXmlElement* config)
{

std::vector<std::string> pieces;
boost::split( pieces, position_char, boost::is_any_of(" "));
urdf::split_string( pieces, position_char, " ");
for (unsigned int i = 0; i < pieces.size(); ++i){
if (pieces[i] != ""){
try {
Expand All @@ -111,7 +111,7 @@ bool parseModelState(ModelState &ms, TiXmlElement* config)
{

std::vector<std::string> pieces;
boost::split( pieces, velocity_char, boost::is_any_of(" "));
urdf::split_string( pieces, velocity_char, " ");
for (unsigned int i = 0; i < pieces.size(); ++i){
if (pieces[i] != ""){
try {
Expand All @@ -130,7 +130,7 @@ bool parseModelState(ModelState &ms, TiXmlElement* config)
{

std::vector<std::string> pieces;
boost::split( pieces, effort_char, boost::is_any_of(" "));
urdf::split_string( pieces, effort_char, " ");
for (unsigned int i = 0; i < pieces.size(); ++i){
if (pieces[i] != ""){
try {
Expand Down

0 comments on commit 17d8c73

Please sign in to comment.