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

How to use custom .srv #145

Open
IceSentry opened this issue Sep 27, 2020 · 6 comments
Open

How to use custom .srv #145

IceSentry opened this issue Sep 27, 2020 · 6 comments

Comments

@IceSentry
Copy link

I'm not sure I understand where I should put a custom .srv to be able to then use it with rosrust_msg. Is there a way to have it locally in a crate that uses rosrust?

@pmirabel
Copy link

pmirabel commented Nov 9, 2020

Hi,
I am currently trying to implement such a thing and integrate it with catkin and roslaunch.

You can find my work on this example repo.

By now, I'm stuck at runtime with this error after a rosservice info (...) :

contacting node http://localhost:34227/ ...
ERROR: remote call failed: Method not implemented

@lucasw
Copy link
Contributor

lucasw commented Nov 9, 2020

rosnode info on a rosrust node also has the same Method not implemented error, but so far it doesn't look like it is hurting the ability of the node to run or communicate with other nodes on topics- so the service could be working fine, just no info?

@pmirabel
Copy link

pmirabel commented Nov 9, 2020

Thx for the answer. Unfortunately, I get an error wathever action I attempt with my rosservice.
Just to be 100% sure, if my service request is a string named action, the rosservice CLI call would be rosservice call /my_service "action:'my string'" ?

@lucasw
Copy link
Contributor

lucasw commented Nov 9, 2020

Does tab complete not work on the rust node rosservice call? (It may be leveraging a rosservice info behind the scenes)

If you make an example C++ or python node in your project that implements the same service you can sort out what is not working in rosrust vs. a typo or some other mistake- and having example nodes in C++ or python alongside rust versions is super valuable for people new to rust (like me).

@pmirabel
Copy link

pmirabel commented Nov 9, 2020

Does tab complete not work on the rust node rosservice call? (It may be leveraging a rosservice info behind the scenes)

Yep, autocompletion does not work either.

If you make an example C++ or python node in your project (...)

Good one, thank you !

@pmirabel
Copy link

pmirabel commented Jan 13, 2021

Hi,
@adnanademovic @IceSentry , I think that this issue could be closed :

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

3 participants