ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
-6

how to realise this function?

asked 2012-06-03 23:27:03 -0500

malong gravatar image

updated 2014-01-28 17:12:33 -0500

ngrennan gravatar image

two nodes(TO and TS) conmunication by service and topic,how to realise this :

   TO                     TS
      --------requst----->         #this is a service ,TO as client,TS as server
      <-------response----


      <-------requst------         #another service,TS as client,TO as server
      -------response---->


      -------topic-------->       # TO as publisher,TS as subscriber

here,two nodes communicate during a time,they run in order, I have no idea to edit

edit retag flag offensive close merge delete

Comments

1

...I don't understand which part of this is your question.

Mac gravatar image Mac  ( 2012-06-04 14:49:59 -0500 )edit

nodes communicate in different.for example,when this service run over,the node judge if will run the next service.

malong gravatar image malong  ( 2012-06-04 14:57:37 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
5

answered 2012-06-03 23:39:14 -0500

dornhege gravatar image

updated 2012-06-04 04:01:49 -0500

Please read the beginner tutorials on ros.org.

edit flag offensive delete link more
0

answered 2012-06-04 15:02:10 -0500

malong gravatar image

as we see, beginner tutorials just give us a simple example,or it doesn't tell us any methods to realise this function.

edit flag offensive delete link more

Comments

They describe exactly the things you are asking for. Of course, if you want the functionality in one node, you have to put it in the same file. If you want something more specific, you need to state that clearer.

dornhege gravatar image dornhege  ( 2012-06-04 23:00:38 -0500 )edit
0

answered 2012-06-04 03:20:02 -0500

malong gravatar image

updated 2012-06-04 03:20:49 -0500

i have read that web site,but i don't find what I want ?could you give me a link?

edit flag offensive delete link more

Comments

1

I included the link in my answer.

dornhege gravatar image dornhege  ( 2012-06-04 04:02:33 -0500 )edit

Question Tools

Stats

Asked: 2012-06-03 23:27:03 -0500

Seen: 319 times

Last updated: Jun 04 '12