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

demi H's profile - activity

2019-12-04 01:45:45 -0500 received badge  Famous Question (source)
2019-08-13 07:38:07 -0500 received badge  Notable Question (source)
2018-09-18 19:54:06 -0500 received badge  Notable Question (source)
2017-10-25 04:33:30 -0500 received badge  Famous Question (source)
2017-03-04 15:38:08 -0500 received badge  Popular Question (source)
2016-09-27 15:58:27 -0500 received badge  Enthusiast
2016-09-19 15:34:46 -0500 asked a question MultipleMachines: cannot work with bi-direction communication

I have 2 robots, robot1(named hal) and robot2(named marvin), and I want to them to communicate.

I set every IP and hostname. robot1 can ping to itself and robot2 by their name(not IP). Also, robot2 can ping to itself and robot1 by their name. Of course, ssh between them works fine.

But there is a problem when they communicate. I'm using publisher-subscriber communicate model, and roscore is run in robot1.

When robot1 publish and robot2 subscribe message, it works fine. But when robot2 publish and robot1 subscribe message a callback function of robot1 isn't called. In 2nd case, publisher's getNumSubscribers always returns 0.

I followed this link : http://wiki.ros.org/ROS/Tutorials/Mul... , and I've already check whether there is misspelled topic or not.

Is there any possibility that this problem is related to firewalls?

2016-09-16 02:35:14 -0500 received badge  Popular Question (source)
2016-09-15 14:24:06 -0500 asked a question publisher-subcriber communication is stable?

I made 2 ROS node. One is for publishing and the other is for subscribing. However, sometimes receiving callback function is not called , even though a message is published.

Is the communication in publisher-subscriber is guaranteed?

Also, which kind of communication model is recommended when there are only 1 publisher and only 1 subscriber?(one-to-one)

2016-08-18 03:06:16 -0500 received badge  Notable Question (source)
2016-08-17 11:25:58 -0500 received badge  Popular Question (source)
2016-08-16 18:17:19 -0500 asked a question ROS spin and initialize

Hi. I'm new to ROS and I'm working with ros cpp. I have a question.

I know that if I call ros::spin(), then it enter a loop, pumping callbacks. But there are certain function that I just want to call, only once in the whole execution time.(and probably at the beginning) Like initializing device(not ros::init), setting which device to use through stdin.

I know that i can use inifinite while loop, but I don't think that it's a good idea. Because ros::spin() is made for that purpose.

Is there any function to solve this problem?