Local_planner build error

#1

I’m trying to build local_planner from latest avoidance version
and getting some compilation error:

/catkin_ws/src/avoidance/local_planner/src/nodes/local_planner_node.h:18:48: fatal error: mavros_msgs/CompanionProcessStatus.h: No such file or directory

I’m updated ROS, but still have an error.

Best regards
Evgeny

#2

@EvgenyAltshuler It looks like you are using a outdated version of mavros.

You should build mavros with the latest master from https://github.com/mavlink/mavros

#3

Hi,

I’m already updated whole ROS
including mavros and mavros-extras.
You mean I need to install development version of mavros ?

Best Regards
Evgeny

#4

@EvgenyAltshuler Yes, you should not use the binary provided by the ros repo (Which means you should not do apt-get install ros-kinetic-mavros )

You should build mavros from source. You can see the instructions on how to build mavros from source in the installation instructions of mavros

#5

@Jaeyoung-Lim thanks. I compiled the local_planner,
and now it working fine.

BR
Evgeny

#6

Hello,
I have some problem with local planner running.
I’m running the latest master.
After successfully compiling avoidance project
I’m using roslaunch local_planner local_planner_stereo.launch command
for simulation. Everything is loaded good, but finally it stops on some point.
Here the last lines of printout :

[spawn_model-8] process has finished cleanly
log file: /home/evgeny/.ros/log/8810d772-0e01-11e9-a88c-5cea1dc619f5/spawn_model-8*.log
[ INFO] [1546373541.451440650, 0.002000000]: Camera Plugin: The ‘robotNamespace’ param did not exit
[ INFO] [1546373541.451713640, 0.002000000]: Camera Plugin: The ‘robotNamespace’ param did not exit
[ INFO] [1546373541.461345686, 0.002000000]: Camera Plugin (ns = ) <tf_prefix_>, set to “”
[ INFO] [1546373541.462931839, 0.002000000]: Camera Plugin (ns = ) <tf_prefix_>, set to “”
[ INFO] [1546373541.608623563, 0.026000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1546373541.610535687, 0.028000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1546373542.010737431, 0.310000000]: Physics dynamic reconfigure ready.
libGL error: failed to create drawable
[ INFO] [1546373542.149381559, 0.420000000]: Physics dynamic reconfigure ready.

Best regards
Evgeny