Ask Your Question
0

Immediate seg fault when running ros node

asked 2012-01-05 23:45:49 -0500

bobby gravatar image

updated 2012-01-06 00:43:08 -0500

mjcarroll gravatar image

I am new to ROS and I followed the directions for creating/making/running ros packages, but I get an immediate seg fault.

Here is what i did:

  1. cd ~/ros_workspace
  2. roscreate-pkg begtut std_msgs rospy roscpp
  3. rosmake begtut
  4. created talker.cpp from the tutorials and saved to src
  5. added rosbuild_add_executable(talker src/talker.cpp) to CMakelists.txt
  6. make
  7. run roscore
  8. rosrun begtut talker

I get "Segmentation fault" written to the screen

What am I missing?

edit retag flag offensive close merge delete

Comments

Did you verify that the code was copied completely correctly?
DimitriProsser gravatar image DimitriProsser  ( 2012-01-06 00:18:28 -0500 )edit
Yes, it build no problem.
bobby gravatar image bobby  ( 2012-01-06 00:41:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-01-06 00:56:01 -0500

bobby gravatar image

So I figured it out. Thanks for those who looked at my question. I looked at the core dump file and saw that it was crashing in the boost threads. I apparentlty have 2 boost libraries installed. I think the ros install put another one in my system.

I went ahead and removed this version, and rebuilt my program. Now it runs fine.

Thanks.

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

Stats

Asked: 2012-01-05 23:45:49 -0500

Seen: 157 times

Last updated: Jan 06 '12