##Meanwhile, manually compile and install the ones copied in the workspace
##TODO: remove libraries from rosinstall when paquetized
RUN cd /root/catkin_ws/src/adc/libraries/autonomous_driving_tools &&mkdir-p build &&cd build && cmake .. && make && make install
RUN cd /root/catkin_ws/src/adc/libraries/opendrive_road_map &&mkdir-p build &&cd build && cmake .. && make && make install
RUN cd /root/catkin_ws/src/adc/libraries/opendrive_to_gazebo &&mkdir-p build &&cd build && cmake .. && make
RUN cd /root/catkin_ws/src && rosdep install-y-i-r--from-paths .
RUN /bin/bash -c"source /opt/ros/melodic/setup.bash && cd /root/catkin_ws && catkin_make -DCATKIN_BLACKLIST_PACKAGES='iri_model_car_driver_battery;iri_model_car_driver_ultrasounds;iri_model_car_driver_egomotion;iri_opendrive_global_planner'"
RUN echo"source /root/catkin_ws/devel/setup.bash">> /root/.bashrc
RUN /bin/bash -c"cd /root && source .bashrc"
#Fix gazebo error/warning: [Err] [REST.cc:205] Error in REST request
#RUN cd && sed -i 's/ignitionfuel/ignitionrobotics/g' .ignition/fuel/config.yaml