Commit ac636b53 authored by Valenza Florian's avatar Valenza Florian
Browse files

[Python] Added method to convert a python List of string to a C++ vector of...

[Python] Added method to convert a python List of string to a C++ vector of string. Warning: the type checking must be made by user before using this function
parent 9856f7df
......@@ -104,6 +104,11 @@ def mprint(M,name = "ans"):
print ""
print ""
def fromListToVectorOfString(list):
vector = se3.StdVec_StdString()
vector.extend(item for item in list)
return vector
from rpy import *
......@@ -112,4 +117,4 @@ __all__ = [ 'np','npl','eye','zero','rand','isapprox','mprint',
'npToTTuple','npToTuple','rotate',
'rpyToMatrix','matrixToRpy',
'se3ToXYZQUAT' ,'XYZQUATToSe3',
'XYZQUATToViewerConfiguration', 'ViewerConfigurationToXYZQUAT' ]
'XYZQUATToViewerConfiguration', 'ViewerConfigurationToXYZQUAT', 'fromListToVectorOfString' ]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment