Chapter 12 on O'Reilly Ros book.

asked 2018-12-08 22:43:35 -0600

Brolin gravatar image

updated 2018-12-09 02:06:05 -0600

I am following O'Reilly book on ROS - Programming Robots with ROS. I am stuck in chapter 12 named followbot. The openCv example just doesnt run on my laptop. In this example the program makes a cv_bridge and displays the image from the turtlebot camera in a window. I also tried to downloaded the source from github ( https://github.com/osrf/rosbook/tree/... ) and tried running it.

Another example tries to open a gazebo environment with an yellow line. When i try to run the launch file, the gazebo process dies with exit code 127. The error is

[gazebo-2] process has died [pid 16513, exit code 127, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode /home/brolin/ROS_BOOK/followbot_ws/src/followbot/course.world __name:=gazebo __log:=/home/brolin/.ros/log/4265a56a-fbb7-11e8-875f-09d687f51948/gazebo-2.log].
log file: /home/brolin/.ros/log/4265a56a-fbb7-11e8-875f-09d687f51948/gazebo-2*.log

I dont' know why this is happening. Can anyone help me out. I am new to ros programming.

edit retag flag offensive close merge delete

Comments

1

I am following O'Reilly book on ROS

which one specifically?

I downloaded the source from github

from where specifically?

Example 2 where it only opens a window to show the image via openCv is not working

what does it do instead?

the gazebo process dies with exit code 127

error msg?

gvdhoorn gravatar imagegvdhoorn ( 2018-12-09 01:49:44 -0600 )edit

Now I have updated my question. Please help me.

Brolin gravatar imageBrolin ( 2018-12-09 02:06:30 -0600 )edit

It would seem at least your first issue is a known issue: osrf/rosbook#29.

gvdhoorn gravatar imagegvdhoorn ( 2018-12-09 02:22:40 -0600 )edit

Thank you @gvdhoorn. What do you thick is the possible cause for the second error that I mentioned?

Brolin gravatar imageBrolin ( 2018-12-10 06:25:01 -0600 )edit