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

gainerems's profile - activity

2013-01-02 02:50:54 -0500 received badge  Popular Question (source)
2013-01-02 02:50:54 -0500 received badge  Notable Question (source)
2013-01-02 02:50:54 -0500 received badge  Famous Question (source)
2012-10-09 16:18:09 -0500 received badge  Famous Question (source)
2012-10-09 16:18:09 -0500 received badge  Popular Question (source)
2012-10-09 16:18:09 -0500 received badge  Notable Question (source)
2011-08-17 21:42:39 -0500 commented answer Change rostest max time allotted
nice, thank you
2011-08-17 21:42:15 -0500 marked best answer Change rostest max time allotted

There's a time-limit parameter in the XML syntax

2011-08-15 02:57:23 -0500 asked a question Change rostest max time allotted

Dear,

I am doing a rostest and want known if is it possible to change the "max time allotted" parameter

Thx.

2011-06-17 12:11:46 -0500 marked best answer Trouble subscribing to turtlesim color sensor in a rostest

Do you have a typo? You are subscribing to /tulesim..., but might want /turtlesim...

It is ok to have a separate roscore running.

2011-06-16 23:39:53 -0500 marked best answer Trouble subscribing to turtlesim color sensor in a rostest

You'll be unable to connect with nodes that were launched under rostest since rostest uses port 22422 instead of 11311. You will need to change the ROS_MASTER_URI to accommodate this, i.e.:

$> export ROS_MASTER_URI=http://your-hostname:22422

This is described in more detail here.

2011-06-16 23:39:53 -0500 received badge  Scholar (source)
2011-06-16 23:39:09 -0500 answered a question Trouble subscribing to turtlesim color sensor in a rostest

okey,

I should put the rostest in text mode earlier, the log info is working.

rospy.loginfo(rospy.get_name()+"I heard %s",data.r)

but i don't why the fail is not working in the callback, how can I stop the callback loop?

2011-06-16 19:34:54 -0500 received badge  Supporter (source)
2011-06-16 19:34:20 -0500 commented answer Trouble subscribing to turtlesim color sensor in a rostest
thx, i stoped roscore but it's still the same.
2011-06-16 19:33:10 -0500 commented answer Trouble subscribing to turtlesim color sensor in a rostest
Thx, actually I run the test and in another terminal (with changing the host) with the listener it works. The problem is in the test script, I can't get topic data from their. It's look like I can subscribe but i can't "listen" in test script.
2011-06-16 10:36:54 -0500 received badge  Student (source)
2011-06-14 19:58:22 -0500 received badge  Editor (source)
2011-06-14 19:56:15 -0500 asked a question Trouble subscribing to turtlesim color sensor in a rostest
def callback(data):
    self.fail(data.data)
x = rospy.Subscriber("/turtlesim/turtle1/color_sensor",Color, callback)
rospy.spin()

Hi, The topic is subscribe and published but i can manage to display the content, if you have any idea thanks.I am using rostest and the master server is different than with roslaunch. (conflit or setup to do?). it's never leave the rospy.spin()

thanks for your answer, the topic is good. When it subscribe I get this so it should be okay. But the callback is never call. I think rostest is doing something i don't get. I run the same in listener.py(from tutorial) and it's work.

rostopic info /turtlesim/turtle1/color_sensor 

Type: turtlesim/Color

Publishers:   * /turtlesim/turtlesim_node (http://jsf-p-desktop:55631/)

Subscribers:   * /turtlesim_move_test (http://jsf-p-desktop:34016/)

okey , i checked the hztest.py and they use:

 sub = rospy.Subscriber(topic, rospy.AnyMsg, self.callback)

should I look for the use of self?

Regards