Ask Your Question

Package installation confusion

asked 2018-12-21 12:18:12 -0500

pitosalas gravatar image

updated 2018-12-22 10:39:37 -0500

I am missing something obvious, maybe you can help. I have a ROS install on my laptop that I have used with both turtlebot and turtlebot3. I am having a problem which I might have traced to diagnostic_agg. What is happening is that the msg that is published has a value at msg.status[7].values[1].value which I expected to see at status[7].

And given that these two robots are similar but not identical I started thinking that the fact that I have both turtlebot3 and turtlebot on the same computer may be the problem. So I double check my directories and I am not sure now whether turtlebot package is actually there. Here's what I did:

$ ls ~/catkin_make/src
CMakeLists.txt  cr_ros  cr_web  rosbook  turtlebot3  turtlebot3_msgs  turtlebot3_simulations

$ sudo apt-get install ros-kinetic-turtlebot
 sudo apt-get install ros-kinetic-turtlebot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-kinetic-turtlebot is already the newest version (2.4.2-0xenial-20181203-135343-0800).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-34 linux-headers-4.15.0-34-generic linux-image-4.15.0-34-generic linux-modules-4.15.0-34-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Query rosdistro index
Add distro "groovy"
Add distro "hydro"
Add distro "indigo"
Add distro "jade"
Add distro "kinetic"
Add distro "lunar"
Add distro "melodic"
updated cache in /home/pitosalas/.ros/rosdep/sources.cache

rospack find turtlebot
[rospack] Error: package 'turtlebot' not found


$ dpkg -l | grep turtlebot
ii  ros-kinetic-turtlebot                        2.4.2-0xenial-20181203-135343-0800                    amd64        The turtlebot meta package provides all the basic drivers for running and using a TurtleBot.
ii  ros-kinetic-turtlebot-bringup                2.4.2-0xenial-20181203-130710-0800                    amd64        turtlebot_bringup provides roslaunch scripts for starting the TurtleBot base functionality.
ii  ros-kinetic-turtlebot-capabilities           2.4.2-0xenial-20181107-032940-0800                    amd64        Capabilities for the TurtleBot
ii  ros-kinetic-turtlebot-description            2.4.2-0xenial-20180825-011706-0800                    amd64        turtlebot_description provides a complete 3D model of the TurtleBot for simulation and visualization.
ii  ros-kinetic-turtlebot-navigation             2.3.7-0xenial-20181203-134700-0800                    amd64        turtlebot_navigation
ii  ros-kinetic-turtlebot-teleop                 2.4.2-0xenial-20181203-134652-0800                    amd64        Provides teleoperation using joysticks or keyboard.

Here's the relvant part of my .bashrc

source /opt/ros/kinetic/setup.bash
source ~/catkin_ws/devel/setup.bash

#export TURTLEBOT3_MODEL=burger
#export TB3_MODEL=burger
# export ROS_MASTER_URI=http://`myip`:11311

source ~/mydev/rosutils/.rosbash
export ROS_IP=`myip`


But unfortunately I don't have a clear idea of how I solved it. I went through the usual 'hygiene' steps of updating ... (more)

edit retag flag offensive close merge delete


So what do you get when you run env | grep ROS and env | grep PATH ?

tfoote gravatar image tfoote  ( 2018-12-21 13:21:57 -0500 )edit

I'm confused @pitosalas: did you unmark my answer as the answer? Any particular reason?

gvdhoorn gravatar image gvdhoorn  ( 2018-12-22 09:20:50 -0500 )edit

Sorry @gvdhoorn you've been very helpful always. I had a dilemma, both the answers helped me solve the problem. I just clicked the one that was more comprehensive and which referred to yours also. In reality I am not sure how I fixed the problem.

pitosalas gravatar image pitosalas  ( 2018-12-22 10:38:17 -0500 )edit

No need to apologise. I was just curious.

gvdhoorn gravatar image gvdhoorn  ( 2018-12-22 12:12:50 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-12-21 13:11:06 -0500

tfoote gravatar image

updated 2018-12-21 13:34:52 -0500

It's unlikely that having both the turtlebot and turtlebot3 packages installed on your system will cause interference.

It looks like the turtlebot is not in your workspace or on your path if rospack cannot find it. Have you sourced the kinetic setup.bash? Please edit your post to share what you're doing to setup your bash terminal including showing relevant parts of your .bashrc if there are ROS releated settings in there.

@gvdhoorn is right that the metapackage isn't expected to be found.

edit flag offensive delete link more

answered 2018-12-21 12:36:43 -0500

gvdhoorn gravatar image

updated 2018-12-21 12:37:23 -0500

Afaik, rospack find doesn't work for metapackages, which turtlebot is (see #q137216 fi).

Try finding any of the other turtlebot packages.

Also: if you've installed things using apt, a simple dpkg -l | grep turtlebot might be more informative.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-12-21 12:18:12 -0500

Seen: 516 times

Last updated: Dec 22 '18