Standard input stream overloading
Opened this issue · 0 comments
Hello,
I am trying a teleoperation network for a leader/follower scenario using two Panda robots where I am sending leader robot states to follower and follower robot states to leader using asynchronous UDP network (using Boot Asio) running in a completely different thread.
I am facing the issue in the overloading method. As I understand, RobotState can be converted into a output stream using this RobotState output stream overloading function
However, when it is received on the other end, there seems to be no input stream overloading method. Is there any way I can convert it back from bytes array to RobotState struct?
I have tried to parse the string as well as use a JSON library but both are not very good solutions.
I realise that franka_ros must be doing something similar for FrankaJointState and FrankaRobotState controllers, if someone can point me in the direction, it will be a great help.
Thank you