Sorry about that. It should be joint_states->first.c_str()
I've fixed that in the other merge request.
(I know it shouldn't have been merged with this error :(