Hi Jeremy,
> The XmlRpcValue type implements the reinterpret cast operator for most
> types. Unfortunately, almost all but the most explicit usages are
> ambiguously defined, so you often need to be explicit. But, generally
> speaking, it means you can just treat the XmlRpcValue object as the
> type you want it to be. In this case, assuming the XmlRpcValue is a
> list, then you can simply use operator[] to access members, and then
> cast them as the appropriate type. The following example retrieves a
> list of doubles from the param server and sums them:
[...]
Thanks, that works great! Should that example be part of the roscpp
param server wiki page? It's a nice starting point when working with
parameter lists and surely helps more than the plain XmlRpc documentation.
Cheers,
Armin
--
Armin Hornung Albert-Ludwigs-Universität
www.informatik.uni-freiburg.de/~hornunga Dept. of Computer Science
HornungA@informatik.uni-freiburg.de Humanoid Robots Lab
Tel.: +49 (0)761-203-8010 Georges-Köhler-Allee 79
Fax : +49 (0)761-203-8007 D-79110 Freiburg, Germany