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

hector_navigation_node problem compilation

asked 2014-10-21 08:50:49 -0500

est_CEAR gravatar image

updated 2014-10-22 04:01:36 -0500

Hello,

I downloaded the hector_navigation package from github but doesn't succeed on using the hector_navigation_node

the error is : "ResourceNotFound: hector_exploration_node".

I downloaded the hector_gazebo and hector_slam packages too and don't have any problem to use them. Is there anything I have to add in a CMakeList.txt to compile this package?

Thank you for your answer

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-11-12 08:03:29 -0500

est_CEAR gravatar image

Well, I used only catkin_make but had to use :

$rosmake hector_exploration_node

which is from the old version of ROS.

Now it works, thank you "ingcavh". Can you modify or complete your answer so that I can validate it, or validate mine because I can't from my own?

edit flag offensive delete link more

Comments

Your welcome :D

ingcavh gravatar image ingcavh  ( 2014-11-12 11:50:01 -0500 )edit
1

answered 2014-11-05 12:22:32 -0500

ingcavh gravatar image

updated 2014-11-12 11:49:25 -0500

Probably, You haven't added the hector navigation stack to your ROS_PACKAGE_PATH. Verify that and if You haven't done it yet, You could download the hector_navigation package to Catkin Workspace. Then, you have to compile the package, in catkin, using de catkin_make command in the catkin directory, not in the catkin source directory because You could damage the catkin workspace. If all is OK in the compilation console, You have to add the catkin workspace to rospath using the command source devel/setup.bash .

After that, You could list all your packages and see your hector_navigation stack with all their packages in the rospack list.

The last step is to build the entire package with rosmake hector_navigation command. If all is OK, you can launch the hector_exploration_node with the following launch file:

<launch>
<node pkg="hector_exploration_node" type="exploration_planner_node" name="hector_exploration_node" output="screen">

    <rosparam file="$(find hector_exploration_node)/config/costmap.yaml" command="load" />

</node>

</launch>

In the costmap.yaml you can configure the footprint of your robot.

edit flag offensive delete link more

Comments

Thank you for your answer.That's exactly what I did from the first time, but I still have this error :

ERROR:cannot launch node of type [hector_exploration_node/exploration_planner_node]:can't locate node [exploration_planner_node] in package [hector_exploration_node]
est_CEAR gravatar image est_CEAR  ( 2014-11-12 01:52:24 -0500 )edit

But I have every nodes contained in the hector_navigation pack in the rospack list, including hector_exploration_node

est_CEAR gravatar image est_CEAR  ( 2014-11-12 01:55:32 -0500 )edit
1

DO you use the launch file in the hector_exploration_node directory? Do you compile the stack with "osmake hector_navigation" commad? Try with these steps and write again in this post after prove that.

ingcavh gravatar image ingcavh  ( 2014-11-12 07:31:21 -0500 )edit

Question Tools

Stats

Asked: 2014-10-21 08:50:49 -0500

Seen: 792 times

Last updated: Nov 12 '14