Ask Your Question
1

Can't generate compiled lisp executables

asked 2015-04-08 12:48:12 -0500

mukhachev gravatar image

updated 2015-04-08 13:02:15 -0500

I am following tutorial on roslisp with simple talker and subscriber. My system is ROS indigo under ubuntu 14.04

During catkin_make I get the following errors, taking all the junk out:

CMake Error at beginner_tutorials/CMakeLists.txt:135 (add_lisp_executable):

Unknown CMake command "add_lisp_executable".

I have also tried to use rosbuild_add_lisp_executable instead, which gives

[ 16%] Built target std_msgs_generate_messages_lisp

[ 16%] /bin/sh: 1: beginner_tutorials: not found/bin/sh: 1:

beginner_tutorials: not found

$ tail build/CMakeFiles/CMakeError.log

/usr/bin/ld: cannot find -lpthreads

collect2: error: ld returned 1 exit status

Thus, the tutorials seem to be obsolete.

Please advice how can I generate compiled lisp executable which I could run with the following command:

rosrun lisp_tutorials talker

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-04-09 07:03:19 -0500

gaya gravatar image

There is a pull request hanging on roslisp that implements the add_lisp_executable functionality: https://github.com/ros/roslisp/pull/19 I'll try to push for merging it into the official repo next week. Then it will be included in the next upcoming Hydro and Indigo release.

So, you can either wait for the next release or put the roslisp code into your workspace and merge that pull request. Alternatively, you can just comment out the add_lisp_executable in the CMakeLists.txt of your tutorial ROS package and start the node from inside Lisp instead of rosrun . If you do need to generate an executable, there is also another alternative: you can create an executable script per hand (similar to the way it is done in Python) as it is described here: http://wiki.ros.org/roslisp/Tutorials...

edit flag offensive delete link more

Comments

Thanks, gaya. I do can launch my lisp scripts from REPL indeed. I was curious about making an executable since I was following the tutorial.

mukhachev gravatar imagemukhachev ( 2015-04-09 10:07:57 -0500 )edit

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

Stats

Asked: 2015-04-08 12:48:12 -0500

Seen: 81 times

Last updated: Apr 09 '15