Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard input stream overloading #104

Open
arsh09 opened this issue Jul 8, 2021 · 0 comments
Open

Standard input stream overloading #104

arsh09 opened this issue Jul 8, 2021 · 0 comments

Comments

@arsh09
Copy link

arsh09 commented Jul 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant