ros-kinetic-desktop on PX 2

Hi

I want to install ROS on my PX2.
I follow the DRIVE PX2 ROS INSTALLATION(https://devtalk.nvidia.com/default/topic/1032204/faq/drive-px2-ros-installation/post/5251398/#5251398), and install successfully.

But I can’t run

$ roslaunch turtle_tf turtle_tf_demo.launch

It show error like below

[turtle_tf_demo.launch] is neither a launch file in package [turtle_tf] nor is [turtle_tf] a launch file name
The traceback for the exception was written to the log file

I have already checked ~/.bashrc and ~/.profile to confirm step9 and step10. It show like bellow.And roscore can work.

~/.bashrc




...

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi


export PATH=/usr/local/cuda-9.0/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/targets/aarch64-linux/lib:$LD_LIBRARY_PATH


source /opt/ros/kinetic/setup.bash

~/.profile

# ~/.profile: executed by the command interpreter for login shells.
#
# Copyright (c) 2017, NVIDIA CORPORATION.  All rights reserved.
#
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

export XAUTHORITY=/home/nvidia/.Xauthority

export LD_LIBRARY_PATH=/usr/lib:/usr/lib/aarch64-linux-gnu

# execute drive-setup.sh if it exist
if [ -f /root/drive-setup.sh ]; then
  /root/drive-setup.sh
fi

Information about our set-up:

  • Driveworks 0.6

Dear allenchen8210,

Could you please run below command instead of echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc in step9?

echo source /opt/ros/kinetic/setup.bash >> ~/.bashrc
source ~/.bashrc

hi, SteveNV

thank u for reply

here is my command, still have error.

nvidia@nvidia:~$ echo source /opt/ros/kinetic/setup.bash >> ~/.bashrc
nvidia@nvidia:~$ source ~/.bashrc
nvidia@nvidia:~$ roslaunch turtle_tf turtle_tf_demo.launch
[turtle_tf_demo.launch] is neither a launch file in package [turtle_tf] nor is [turtle_tf] a launch file name
The traceback for the exception was written to the log file

./bashrc

Really thank u for ur help

...

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e ''s/^\s*[0-9]\s*//;s/[;&|]\s*alert$//'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi


export PATH=/usr/local/cuda-9.0/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/targets/aarch64-linux/lib:$LD_LIBRARY_PATH


source /opt/ros/kinetic/setup.bash
source /opt/ros/kinetic/setup.bash

Dear allenchen8210,

Could you please attach a log via history command?

Hi SteveNV, here is my history command.

1244  weget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
 1245  wget https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
 1246  wget --no-check-certificate https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
 1247  sudo apt-get install ca-certificates
 1248  sudo c_rehash /etc/ssl/certs
 1249  rosdep init
 1250  sudo easy_install pip 
 1251  apt-cache search ros-kinetic
 1252  sudo rosdep init
 1253  rosdep update
 1254  sudo rosdep update
 1255  sudo rosdep init
 1256  sudo apt-get install ros-kinetic-desktop-full
 1257  rviz &
 1258  rviz&
 1259  rosversion -d
 1260  echo $ROS_DOSTRO
 1261  sudo apt-get install libssl1.0.0/xenial libssl-doc/xenial libssl-dev/xenial
 1262  htop sudo apt-get install ros-kinetic-desktop
 1263  sudo apt-get install ros-kinetic-desktop
 1264  echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1265  source ~/.bashrc
 1266  echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
 1267  source ~/.bashrc
 1268  sudo source ~/.bashrc
 1269  sudo -s 
 1270  bash: “source: command not found
 1271  source ~/.bashrc 
 1272  source  ~/.bashrc 
 1273  sudo -s
 1274  sudo -s source ~/.bashrc
 1275  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu
 1276  roslaunch turtle_tf turtle_tf_demo.launch
 1277  rosversion -d
 1278  % sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin libmosquitto-dev gksu
 1279  cd $HOME
 1280  ls
 1281  cd Autoware/ros/
 1282  rosdep update
 1283  sudo rosdep init
 1284  cd src/
 1285  catkin_init_workspace 
 1286  cd ../
 1287  rosdep update
 1288  rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
 1289  sudo rosdep init 
 1290  sudo -E rosdep init 
 1291  sudo rosdep init 
 1292  rosdep update 
 1293  ./catkin_make_release
 1294  rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
 1295  ls
 1296  ./run
 1297  python
 1298  python3
 1299  pip install psutil
 1300  python
 1301  pip install psutil
 1302  ./run
 1303  which easy_install 
 1304  pip install psutil
 1305  sudo pip install psutil
 1306  ./run
 1307  ls
 1308  cd Autoware/ros/
 1309  ./run
 1310  sudo ./run
 1311  sudo apt-get install python-wxtools
 1312  sudo apt autoremove 
 1313  sudo apt-get install python-wxtools
 1314  pip install -U colcon-common-extensions
 1315  sudo pip install -U colcon-common-extensions
 1316  source /opt/ros/indigo/setup.bash
 1317  ls
 1318  roscore
 1319  cd Autoware/ros/
 1320  ls
 1321  source devel/setup.bash 
 1322  ./run
 1323  cd ..
 1324  ls
 1325  source devel/setup.bash
 1326  cd ros/
 1327  source devel/setup.bash
 1328  catkin_package_version 
 1329  ls
 1330  exit
 1331  htop
 1332  exit
 1333  cd Autoware/ros/
 1334  ./run
 1335  cd src/
 1336  catkin_init_workspace 
 1337  cd .
 1338  cd ..
 1339  ls
 1340  ./catkin_make_release
 1341  rosdep update
 1342  rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
 1343  ./catkin_make_release
 1344  ./run
 1345  source /opt/ros/indigo/setup.bash
 1346  ls
 1347  ./colcon_release
 1348  vim colcon_release
 1349  ./colcon_release
 1350  ./run
 1351  sudo apt-get install -y python3-pip python3-setuptools
 1352  sudo pip3 install -U setuptools
 1353  cd Autoware/ros/
 1354  ls
 1355  ./colcon_release
 1356  ros
 1357  roscore 
 1358  ./camera_test 
 1359  rostopic list 
 1360  rostopic echo /image_raw 
 1361  ./run
 1362  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1363  roslaunch multi_gmsl.launch 
 1364  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1365  rosnode list 
 1366  rosrun turtlesim turtlesim_node
 1367  $ sudo apt-get install ros-<distro>-ros-tutorials
 1368  $ sudo apt-get install ros-<kinetic>-ros-tutorials
 1369  $ sudo apt-get install ros-kinetic-ros-tutorials
 1370  sudo apt-get install ros-kinetic-ros-tutorials
 1371  rosrun turtlesim turtlesim_node
 1372  rosversion -d
 1373  roscore 
 1374  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch 
 1375  cd Autoware/ros/
 1376  ./run
 1377  roscore 
 1378  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch 
 1379  cleaer 
 1380  clear 
 1381  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch 
 1382  roslaunch multi_gmsl.launch 
 1383  source devel/setup.bash
 1384  ./run
 1385  Arg xml is <arg default="$(find autoware_driveworks_gmsl_interface)/calib/" name="cam_calib_folder"/>
 1386  The traceback for the exception was written to the log file
 1387  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1388  exit 
 1389  source bashrc
 1390  source 
 1391  source --help
 1392  source -help
 1393  sudo -s 
 1394  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch 
 1395  roscd beginner_tutorials
 1396  roslaunch turtlebot_gazebo turtlebot_world.launch
 1397  roscore 
 1398  vi ~/.bashrc
 1399  roscore 
 1400  cd Autoware/ros/
 1401  ./run
 1402  cd ..
 1403  ls
 1404  cd ..
 1405  ls
 1406  cd etc/
 1407  ls
 1408  cd apt
 1409  ls
 1410  vi sources.list
 1411  vi sources.list.d
 1412  cd Autoware/ros/
 1413  cd install/
 1414  ls
 1415  source setup.bash 
 1416  cd ..
 1417  ./run
 1418  source install/setup.bash 
 1419  sudo ./run
 1420  ls
 1421  cd ..
 1422  ls
 1423  cd ..
 1424  ls
 1425  cd usr/
 1426  ls
 1427  cd bin/
 1428  ls
 1429  cd
 1430  cd env
 1431  vim env
 1432  echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
 1433  source ~/.bashrc
 1434  rosrun turtlesim turtlesim_node 
 1435  source install/setup.bash 
 1436  ./run
 1437  source install/local_setup.bash 
 1438  ./run
 1439  source install/setup.bash 
 1440  roscd beginner_tutorials
 1441  cd Autoware/ros/
 1442  ls
 1443  cd install/
 1444  source setup.bash 
 1445  roscd beginner_tutorials
 1446  cd ..
 1447  roscd beginner_tutorials
 1448  source install/setup.bash 
 1449  roscd beginner_tutorials
 1450  ./run
 1451  source install/local_setup.bash 
 1452  roscd beginner_tutorials
 1453  rosrun rqt_console rqt_console
 1454  sudo apt-get install ros-linetic-rqt ros-kinetic-rqt-common-plugins ros-kinetic-turtlesim
 1455  sudo apt-get install ros-kinetic-rqt ros-kinetic-rqt-common-plugins ros-kinetic-turtlesim
 1456  rosrun rqt_console rqt_console
 1457  rosrun rqt_logger_level rqt_logger_level
 1458  echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1459  sudo source ~/.bashrc
 1460  sudo -s source ~/.bashrc
 1461  sudo -su source ~/.bashrc
 1462  echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1463  sudo -s source ~/.bashrc
 1464  roscor
 1465  roscore 
 1466  vi bashrc
 1467  vi ~/.bashrc
 1468  roscore
 1469  vi ~/.bashrc
 1470  echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1471  echo  “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1472  echo  “export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu” >> ~/.bashrc
 1473  source ~/.bashrc 
 1474  sudo -s source ~/.bashrc
 1475  cd Autoware/ros/
 1476  ./run
 1477  source install/setup.bash 
 1478  ./run
 1479  cd ~
 1480  source 
 1481  echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1482  source ~/.bashrc 
 1483  sudo -s source ~/.bashrc 
 1484  cd Autoware/ros/
 1485  ./run
 1486  vi ~/.bashrc 
 1487  roscore
 1488  vi ~/.bashrc 
 1489  cd Autoware/ros/
 1490  ./run
 1491  roscore 
 1492  cd Autoware/ros/
 1493  ./run
 1494  vi ~/.bashrc 
 1495  source setup.bash 
 1496  roscd beginner_tutorials
 1497  roscd beginner_tutorials
 1498  source Autoware/ros/install/setup.bash 
 1499  roscd beginner_tutorials
 1500  roscore
 1501  catkin_make
 1502  rosnode list 
 1503  rosnode ping my_turtle
 1504  roslaunch multi_gmsl.launch 
 1505  roscore
 1506  roslaunch usb_cam-test.launch 
 1507  roslaunch multi_gmsl.launch 
 1508  roslaunch usb_cam-test.launch 
 1509  roslaunch beginner_tutorials turtlemimic.launch
 1510  roslaunch turtlemimic.launch
 1511  udo apt-get install ros-kinetic-rqt ros-kinetic-rqt-common-plugins ros-kinetic-turtlesim
 1512  sudo apt-get install ros-kinetic-rqt ros-kinetic-rqt-common-plugins ros-kinetic-turtlesim
 1513  roscd autoware_driveworks_gmsl_interface
 1514  cd Autoware/ros/
 1515  ./run
 1516  roslaunch gmsl_interface.launch 
 1517  source ~/.bashrc
 1518  cd Autoware/ros/
 1519  ./run
 1520  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1521  roslaunch gmsl_interface.launch 
 1522  roscore 
 1523  source setup.bash 
 1524  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1525  vi ~/.bashrc 
 1526  source install/setup.bash 
 1527  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1528  source install/local_setup.bash 
 1529  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1530  roslaunch autoware_driveworks_gmsl_interface multi_gmsl.launch
 1531  roslaunch turtle_tf turtle_tf_demo.launch
 1532  vi ~/.profile
 1533  roslaunch turtle_tf turtle_tf_demo.launch
 1534  vi ~/.bashrc
 1535  sudo -s echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
 1536  source ~/.bashrc
 1537  sduo -s source ~/.bashrc
 1538  sudo -s source ~/.bashrc
 1539  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu
 1540  vi ~/.bashrc
 1541  roslaunch turtle_tf turtle_tf_demo.launch
 1542  roscore
 1543  cd Autoware/ros/
 1544  ./run
 1545  sudo rosdep init
 1546  rosdep
 1547  roslaunch turtle_tf turtle_tf_demo.launch
 1548  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu
 1549  roslaunch turtle_tf turtle_tf_demo.launch
 1550  echo $PATH
 1551  sudo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu
 1552  export
 1553  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/lib/aarch64-linux-gnu
 1554  export
 1555  roslaunch turtle_tf turtle_tf_demo.launch
 1556  roscore 
 1557  vi ~/.bash_profile
 1558  vi ~/.profile
 1559  vi ~/.bash_profile
 1560  export
 1561  echo $LD_LIBRARY_PATH
 1562  vi ~/.bash_profile
 1563  sudo ldconfig
 1564  cd Autoware/ros/
 1565  ./run
 1566  cd Autoware/ros/
 1567  ./run
 1568  echo source /opt/ros/kinetic/setup.bash >> ~/.bashrc
 1569  source ~/.bashrc
 1570  roslaunch turtle_tf turtle_tf_demo.launch
 1571  vi ~/.bashrc 
 1572  source ~/.bashrc
 1573  roslaunch turtle_tf turtle_tf_demo.launch
 1574  roscd log 
 1575  ls
 1576  roslaunch turtle_tf turtle_tf_demo.launch
 1577  roscd log 
 1578  cd ~
 1579  roscd log 
 1580  roslaunch turtle_tf turtle_tf_demo.launch
 1581  history

hi SteveNV

this issue has been solved, i re-install full ros. Thank u~