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

Problem with sr_hand launch file

asked 2012-03-01 20:27:38 -0500

updated 2012-03-01 22:20:24 -0500

Hi,

I'm trying to execute launch file of sr_hand package:

roslaunch sr_hand sr_arm_motor.launch

but since, I think, I updated, always I get an error:

core service [/rosout] found
process[shadowarm-1]: started with pid [3961]
process[robot_state_publisher_pos_arm-2]: started with pid [3962]
process[robot_state_publisher_target_arm-3]: started with pid [3963]
process[shadowhand-4]: started with pid [3964]
process[srh_robot_state_publisher_pos-5]: started with pid [3965]
process[srh_robot_state_publisher_target-6]: started with pid [3966]
process[fixed_frame_pos_pub_arm-7]: started with pid [3968]
process[fixed_frame_target_pub_arm-8]: started with pid [3978]
process[link_hand_arm_pos-9]: started with pid [3984]
process[link_hand_arm_target-10]: started with pid [3989]
process[ordered_position_joint_states_merger-11]: started with pid [3994]
process[ordered_target_joint_states_merger-12]: started with pid [4003]
process[sr_diagnostic_aggregator-13]: started with pid [4010]
[ERROR] [1330675983.196615526]: [registerPublisher] Failed to contact master at
 [localhost:11311].  Retrying...

Never contact with master and I don't know why happen this because master should be active. I try execute roscore but obviously don't work because sr_arm_motor.launch try to launch its own master.

Update: Also, I try to follow next tutorial (http://www.ros.org/wiki/sr_hand/Tutorials/Getting%20Started%3A%20running%20the%20hand%20and%20arm%20interface) but nothing work. Always I receive once of this errors:

[ERROR] [1330682782.955981987]: [registerPublisher] Failed to contact master at
 [localhost:11311].  Retrying...

or

cannot resolve host address for machine [napoleon]

If someone can help me, I appreciate.

Thanks.

Raúl Pérula

edit retag flag offensive close merge delete

Comments

Hi Raul,

Sorry about that, we're in the process of cleaning our code and some things are not entirely stable yet.

Which branch of our code did you use to do your update?

What happens when you start roscore first? (if a roscore is running, then roslaunch doesn't start its own roscore).

Ugo gravatar image Ugo  ( 2012-03-01 23:15:22 -0500 )edit

Hi Ugo, I use general latest repositories of ROS for Ubuntu (deb http://packages.ros.org/ros/ubuntu lucid main). Latest week that code work fine, but this week doesn't work. I'm working with Nico Burrus in UC3M and we are trying to incorporate our robot arm, done in openrave, in ROS nodes of shadow.

raul.perula gravatar image raul.perula  ( 2012-03-02 20:33:15 -0500 )edit

If I start roscore first, it happen the same error. But, If I start roscore after roslaunch, roscore show me this:

roscore cannot run as another roscore/master is already running. Please kill other roscore/master processes before relaunching. The ROS_MASTER_URI is http://raul-laptop:11311/

raul.perula gravatar image raul.perula  ( 2012-03-02 20:44:07 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2012-03-04 18:27:03 -0500

Ugo gravatar image

updated 2012-03-05 01:16:51 -0500

It may be a config error in your ROS setup. Are you able to start other packages happily?

Could you check a few things? What are the outputs of:

> echo ${ROS_MASTER_URI}

> echo ${ROS_IP}

> echo ${ROS_HOSTNAME}

> roscd shadow_robot ; pwd

ROS_IP should be your pc ip address, ROS_HOSTNAME should be your pc hostname (raul-laptop I guess)

Edited: It was due to using the wrong branches: make sure you're using lp:sr-ros-interface/stable for the shadow_robot stack.

edit flag offensive delete link more

Comments

Hi Ugo,

These are my outputs:

$ echo ${ROS_MASTER_URI} http://localhost:11311 $ echo ${ROS_IP} 127.0.0.1 $ echo ${ROS_HOSTNAME} raul-laptop $ roscd shadow_robot/; pwd /home/raul/workspace_ros/manipulation/shadow_robot

I try changing ROS_IP by other but it doesn't work. Always show me the error.

raul.perula gravatar image raul.perula  ( 2012-03-04 20:32:37 -0500 )edit

The rest of packages work fine. The only one that doesn't work is sr_hand.

raul.perula gravatar image raul.perula  ( 2012-03-04 20:33:40 -0500 )edit

Ok, thanks. So you're not using the shadow_robot stack from the ubuntu repo. Can you do: "roscd shadow_robot; bzr info" ? (I'm trying to understand which version of the code you have to be able to help you).

Ugo gravatar image Ugo  ( 2012-03-04 20:56:39 -0500 )edit

Here is the info:

Related branches: parent branch: http://bazaar.launchpad.net/~ugocupcic/sr-ros-interface/manipulation/

I have this in my ".rosintall" file:

  • bzr: {local-name: manipulation, uri: 'lp:~ugocupcic/sr-ros-interface/manipulation'}
raul.perula gravatar image raul.perula  ( 2012-03-04 21:17:35 -0500 )edit

Ok, this branch is deprecated (even closed on launchpad). Did you do any work on the branch? If you have nothing to save, pull and overwrite the stable branch: "bzr pull --overwrite lp:sr-ros-interface/stable".

Ugo gravatar image Ugo  ( 2012-03-04 21:25:26 -0500 )edit

Question Tools

Stats

Asked: 2012-03-01 20:27:38 -0500

Seen: 896 times

Last updated: Mar 05 '12