-
Notifications
You must be signed in to change notification settings - Fork 373
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
BSON is better for ROS# #198
Conversation
Thanks @akirayou , this is nice. So I'd suggest to change the
Does this make sense to you? I also find your contirbution / modifications worth mentioning in the file's header. So would you please add a comment like:
one line below the header of each source file that you change, similar to as we did here? Thank you! |
I see! I think adding the flag to the constuctor is better. And I'll also add the option to RosConnector.cs(in Unity3D). Thank you. |
Right. Please add the options to RosConnector and RosSocket, that's a lot better. |
I add the code ,selecting serializer. I remove "static" on Serializer/Desirializer to pass the member variable "Serializer". And I used enum instead of bool. Because my friend says "MsgPack is faster!!". Thank you |
That is beautiful, thank you. The only thing left to do is updating Unity3D/Assets/RosSharp/Plugins.RosBridgeClient.dll with you new compiled version. I will then merge your pull request. |
Oh,I forgot it. |
rosbridge is now (0.11.0 or later) supports Inf and NaN float data on bson_only_mode.
RobotWebTools/rosbridge_suite#391
It's useful for LaserScan data (It often contains Nan or Inf float data).
And also BSON is also little bit faster on binary data such as PointCloud.
I just overwrite Serialize/Deserialize function,So you can not use JSON any more.
So in this Patch,you have to launch rosbridge with bson_only_mode flag.
Like this.