-
Notifications
You must be signed in to change notification settings - Fork 379
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
How to include additional standard types (eg Float, Int, etc) #46
Comments
I ended up compartmentalizing the client dll by making MessageTypes abstract and building custom ones in Unity along with the custom Receivers but I'm still unclear how the data is populated and have been getting an error |
Hi @LaneF ! Thanks for experimenting with ROS#. Since you are not the first one asking that question, I wrote a Wiki Page about it: https://github.com/siemens/ros-sharp/wiki/Dev_NewMessageTypes Please let me know if I left anything unclear. P.S. I am curious what you are doing with the other Standard Messages. I'd appreciate if you tell us what your are working on out trying out. We have a special issue for that here. |
@LaneF what is your status with this issue? |
@MartinBischoff Hey thanks for the write up, it's a useful addition to the wiki. We wanted to know about doing this because we were having some issues with communication through to the ROS VM and needed to rule out std_msgs working but custom msgs not working. Got it sorted, turned out to be an issue in the ROS project setup and we've got it running smoothly now. I do have some suggestions for the plugin source to make it easier to extend in Unity, I can do a pull request when it's stable, if you like. |
@LaneF Definitely I am interested in your suggested modifications of RosBridgeClient! Please note that we split it up as it is to have a generic and complete library for communicating with ROS from any .NET application, not necessarily Unity. If you have a stable version, please do upload it on your GitHub fork and give me a note before doing a pull request. |
I have ROS running a project and broadcasting a float, but get an error on the Unity side since the
MessageTypes.Dictionary
doesn't have mapping for it. String is mapped ({ "std_msgs/String", typeof(StandardString) },
) but I do not understand how this is populated in order to correctly extend it to the other standard types.My question is how do I extend the RosBridgeClient to support the other standard types and how are they populated?
Thanks
The text was updated successfully, but these errors were encountered: