add alternative URDF parser that doens't use ROS urdf
This commit is contained in:
17
examples/Importers/ImportURDFDemo/urdfLexicalCast.h
Normal file
17
examples/Importers/ImportURDFDemo/urdfLexicalCast.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef BOOST_REPLACEMENT_LEXICAL_CAST_H
|
||||
#define BOOST_REPLACEMENT_LEXICAL_CAST_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
template <typename T> T urdfLexicalCast(const char* txt)
|
||||
{
|
||||
double result = atof(txt);
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user