ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Jump to error using rosmake and Emacs

asked 2013-06-10 22:08:07 -0500

The Martin gravatar image

updated 2013-06-11 14:39:59 -0500

joq gravatar image

Hi all!

I'm just getting started working with ROS. My usual workflow is to edit code in Emacs, and compile from Emacs. Then I can jump to errors in the code by pressing C-x`. However, when using rosmake, this doesn't work.

What is the best way to integrate rosmake with Emacs? I tried installing rosemacs, but that mode seems to have no support for compiling, but rather browsing ros nodes, etc.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-06-11 14:39:06 -0500

joq gravatar image

I generally run M-x compile and replace the "make -k" in the minibuffer with:

 cd ../..; rosmake

From then on it will remember your last compile command, and C-x ` works as usual.

You need to use the right number of ".." references to reach the top of your package. Rosmake does not work from a subordinate directory.

I'd love to hear a more elegant solution, but that works OK for me.

edit flag offensive delete link more
0

answered 2013-06-11 19:24:44 -0500

The Martin gravatar image

Aha! "cd.." was the trick. Thanks.

edit flag offensive delete link more

Comments

Please consider to mark provided answer as correct if it did help you. Also, please do not use "Your answer" form for comments - this is not a forum, but Q&A site. Thanks.

Boris gravatar image Boris  ( 2013-06-12 00:34:10 -0500 )edit

Question Tools

Stats

Asked: 2013-06-10 22:08:07 -0500

Seen: 189 times

Last updated: Jun 11 '13