GithubHelp home page GithubHelp logo

Comments (9)

wesgood avatar wesgood commented on August 15, 2024

I target messages that users request, simply due to the time I have available. Now that I know there is more interest for the standard message package, I'll look into it further. Thanks for the note! If there are other types you'd like to see for sure, please let me know (although at this point I will likely try to get as many of the standard messages as possible).

from rbsmanager.

juliangaal avatar juliangaal commented on August 15, 2024

Great, thank you.

I'm building an app, from which I can send voice commands to ROS. For now, what would you recommend? Just use geometry_msgs::Twist and "abuse" the frame_id as my command string? Do you know if there's a limit on character length for the frame id?

from rbsmanager.

wesgood avatar wesgood commented on August 15, 2024

I think you can build your own message type if you want to use that instead. Swift should be able to make use of any class in your project globally. Take a look at any of the simple classes like PointMessage and adjust the properties to suit. You just need to inherit from RBSMessage and conform to the ObjectMapper protocol. If you name your class something specific to your project, there shouldn't be any naming collisions later if I add a new type (I'll be using something generic like StringMessage, for example).

from rbsmanager.

juliangaal avatar juliangaal commented on August 15, 2024

I thought about that. If it works well, I'll make a PR (granted, I continue this project I'm working on)

Is there a way for me to use the HeaderMessage directly? Or is it embedded in others? Because choosing MessageClass: HeaderMessage.self results in an error

from rbsmanager.

wesgood avatar wesgood commented on August 15, 2024

It seems I was sloppy on some of the message classes and they are not marked as public. If you change that, you should have access. Take a look at TwistMessage for an example on using nested message types (it's only the constructor that is different)

from rbsmanager.

juliangaal avatar juliangaal commented on August 15, 2024

I think the same happened with Time Message

from rbsmanager.

juliangaal avatar juliangaal commented on August 15, 2024

Created pull request #3

Adds Message Type StringMessage
Makes TimeMessage and HeaderMessage public

from rbsmanager.

wesgood avatar wesgood commented on August 15, 2024

Thank you for supplying the new StringMessage class. I have included it in the new version 0.3.0. I've also included a Python script to generate message files on demand. I'll close this issue but feel free to open it again if you have questions.

from rbsmanager.

juliangaal avatar juliangaal commented on August 15, 2024

great idea with the Python script!

from rbsmanager.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.