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

cosmic_cow's profile - activity

2018-02-13 09:37:30 -0500 received badge  Taxonomist
2013-11-18 02:45:51 -0500 received badge  Famous Question (source)
2013-01-16 22:32:12 -0500 received badge  Notable Question (source)
2013-01-16 22:18:05 -0500 received badge  Nice Question (source)
2012-12-25 06:45:49 -0500 received badge  Famous Question (source)
2012-12-03 20:58:51 -0500 received badge  Student (source)
2012-12-03 20:58:44 -0500 received badge  Popular Question (source)
2012-11-17 11:20:05 -0500 asked a question How to check if a node has already been initialized?

Ubuntu 12.04, Fuerte

I'm doing some stuff with the Robonaut (r2) model in Gazebo. I'm using a couple of topics to get information about the world (specifically tf and model_states). The problem I'm having is when I go to initialize the listener:

rospy.init_node('listener', anonymous=True)

I'm using tf to get location information for parts of Robonaut (fingertips and whatnot). If this node initialization has already been run, when it hits this line for the second go-round, it breaks up the frame tree for the model, the robot goes limp, and I can no longer control it (or get useful information since most of the parent/child relationships have been broken). I've verified this by running

rosrun tf view_frames

before and after a second intialization and examining the output pdf. Many of the frames are simply gone, and you just end up with a bunch of individual two-element 'trees' (i.e. one parent node, one child).

I have no explanation for this behavior; my understanding is that ROS will just replace an old node if it gets initialized a second time. I could be very cautious in my code and ensure I only run this once in a main method or something, but since I've written separate classes and functions that retrieve information from topics, I'd like to be able to just check if it's been initialized and skip initialization if it has so that my code is more flexible and reusable. Is it possible to do this?

Thanks

2012-10-23 06:02:31 -0500 asked a question get_link_state in Gazebo doesn't work

Ubuntu 12.04 Fuerte

I'm trying to use 'rosservice call get_link_state ' or 'rosservice call gazebo/get_link_properties' to get information on Robonaut's positions in the world in Gazebo. The following show the results using either a valid or invalid link names with gazebo/get_link_properties:

colin@ubuntu:~$ rosservice call gazebo/get_link_properties /r2/right_index_distal
ERROR: service [/gazebo/get_link_properties] responded with an error:

colin@ubuntu:~$ rosservice call gazebo/get_link_properties /r2/rifgjdjg
ERROR: transport error completing service call: unable to receive data from sender, check sender's logs for details

get_link_state is a link in relation to something else (I just try 'world') and it gets the same "responded with an error:" message but, like the previous service call, without any useful information. Is there something I'm doing incorrectly?

2012-10-18 01:58:10 -0500 received badge  Notable Question (source)
2012-10-16 01:06:02 -0500 received badge  Popular Question (source)
2012-10-14 11:06:48 -0500 asked a question How to model simple URDF objects?

I'm trying to model a simple hammer for use in Gazebo; I'm using ROS Fuerte in Ubuntu 12.04. It doesn't have to be terribly complicated, it's just to do some grasping stuff with the NASA Robonaut r2 model (which runs just fine). I've tried modeling a simple rectangle with a static joint to a cylinder in URDF, but I can't get anything to spawn. It either says it can't communicate or crashes Gazebo outright. I feel like I'm stumbling in the dark; there's precious little I can find for how to do object modeling for Gazebo, and any help would be greatly appreciated.