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

Stack/package robot_setup_tf not found

asked 2015-06-16 00:25:34 -0500

psprox96 gravatar image

Hi all. I'm new to ROS. I'm tasked to Hokuyo UST-20LX's laser scan to scan area.

I'm stuck with the robot_setup_tf part. I have already set up my workspace environment with:

~/catkin_ws$ source devel/setup.bash

and to confirm:

~/catkin_ws$ echo $ROS_PACKAGE_PATH

I get:

/home/gordon/catkin_ws/src:/opt/ros/groovy/share:/opt/ros/groovy/stacks

Afterwards I did catkin_make and catkin_make install (no error) and tried to run:

rosrun robot_setup_tf tf_broadcaster

It gives me:

[rospack] Error: stack/package robot_setup_tf not found

I suspect the problems lies with the environment configuration (just my guess) and ran:

~/catkin_ws$ echo $ROS_PACKAGE_PATH

and I got:

/opt/ros/groovy/share:/opt/ros/groovy/stacks

Any problems with the environment setup? If not, what is the problems with not being able to start up tf_broadcaster?

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-06-16 02:01:12 -0500

gvdhoorn gravatar image

updated 2015-06-16 02:03:16 -0500

Afterwards I did catkin_make and catkin_make install (no error) and tried to run: rosrun robot_setup_tf tf_broadcaster. It gives me:

[rospack] Error: stack/package robot_setup_tf not found

I suspect the problems lies with the environment configuration (just my guess) and ran: ~/catkin_ws$ echo $ROS_PACKAGE_PATH, and I got:

/opt/ros/groovy/share:/opt/ros/groovy/stacks

Catkin does out-of-source builds, which is why you need to source other spaces like devel. Since you ran catkin_make install, all build artefacts will be installed into the install space. That space has its own setup.bash, so you'll need to source that, but only after you've ran catkin_make install.

I don't see a source ~/catkin_ws/install/setup.bash in your OP, so I'm guessing you didn't do that.

See wiki/catkin/workspaces for more info on catkin workspaces in general, and on catkin spaces in particular. REP-128 is the more normative reference for this.

PS: running catkin_make install isn't actually necessary to execute nodes in your workspace. A regular catkin_make results in a devel space that can already be used. Just source /path/to/your/catkin_ws/devel/setup.bash after building your workspace. No need to install anything.

PPS: this is completely up to you of course, but I'd not use Groovy anymore. It EOL-ed for some time now, so no updated and / or fixes will be released for it.

edit flag offensive delete link more

Comments

Oh I get it. I sourced back devel/setup.bash and run rosrun robot_setup_tf tf_broadcaster , it works. Thanks a lot!

psprox96 gravatar image psprox96  ( 2015-06-16 03:02:27 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-16 00:25:34 -0500

Seen: 1,664 times

Last updated: Jun 16 '15