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

Error while compiling modified cmd_vel_mux

asked 2014-04-25 21:34:18 -0500

RB gravatar image

updated 2014-04-26 11:13:30 -0500

Hi, I am using ROS fuerte version and the simulator is USARSim. I use the * velocity multiplexer (sudo apt-get install ros-fuerte-yujin-ocs)* designed by YujinRobot(http://wiki.ros.org/cmd_vel_mux).

I modify the one header file and one cpp file, to incorporate one more subscriber (so that nodelet manager subscribes to amcl_pose topic). But when I compile the code following error appears.

make output image description

NOW ABOVE ERROR IS SOLVED BY FOLLOWING THE ANSWER

Problem OCCURS When I run FOLLOWING COMMAND

roslaunch cmd_vel_mux standalone.launch

http://pastebin.com/XnUkXRCZ

nodelet_manager and velocity_multiplexer nodes don't get initialized

You can view the highlighted portion of the header file here http://pastebin.com/0aJzRS2x

Please help..LOOK in the above TWO LINKS

edit retag flag offensive close merge delete

Comments

As an aside, logging in as root and performing operations is not considered good practice. Everything you need can be accomplished using the 'normal' user.

McMurdo gravatar image McMurdo  ( 2014-07-07 06:59:16 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-04-25 22:47:00 -0500

I suspect that you forgot to add

#include <geometry_msgs/PoseWithCovarianceStamped.h>

in cmd_vel_mux_nodelet.h.

I´d recommend posting code directly or a link to it, as opposed to taking screenshots of it (as screenshots don´t allow copy/pasting code, eat bandwidth and are generally unwieldy)

edit flag offensive delete link more

Comments

Oh, thanks a lot. Now, there is no error while 'make'. But when I try to launch nodelet_manager, some error appears as updated in the question..

RB gravatar image RB  ( 2014-04-26 08:18:31 -0500 )edit

If a new error appears after solving the first problem, please do not exchange the original question. Any answers won't match any more and anyone that finds this problem later won't be helped. Open a new question for a new problem instead.

dornhege gravatar image dornhege  ( 2014-04-26 08:25:40 -0500 )edit

Now I use pastebin @Stefan Kohlbrecher. I have changed the question accordingly @dornhege.

RB gravatar image RB  ( 2014-04-26 10:59:46 -0500 )edit

Why we can't add our own function? Added a new question, please have a look http://answers.ros.org/question/157886/error-while-loading-nodelet-velocity_multiplexer/

RB gravatar image RB  ( 2014-04-26 19:12:45 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-25 21:34:18 -0500

Seen: 237 times

Last updated: Apr 26 '14