Skip to content

Commit

Permalink
Merge pull request autowarefoundation#2109 from CPFL/fix/gazebo_with_…
Browse files Browse the repository at this point in the history
…colcon

Fix/gazebo with colcon
  • Loading branch information
yukkysaito authored Mar 13, 2019
2 parents 69e3dc2 + db8446a commit 3ebbc7b
Show file tree
Hide file tree
Showing 24 changed files with 44 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 2.8.3)
project(vehicle_gazebo_simulation_launcher)

find_package(catkin REQUIRED
controller_manager
controller_manager
robot_state_publisher
joint_state_controller
Expand All @@ -17,4 +16,5 @@ catkin_package(
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY scripts
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS)
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
#!/bin/sh

mkdir -p ~/.gazebo/models
echo "Download generic gazebo models"
echo "---- Download generic gazebo models ----"
if [ -e /tmp/gazebo_models ]; then
echo "Already exist /tmp/gazebo_models"
echo "removing /tmp/gazebo_models"
echo "---- Already exist /tmp/gazebo_models ----"
echo "---- removing /tmp/gazebo_models ----"
rm -r /tmp/gazebo_models
fi
hg clone https://bitbucket.org/osrf/gazebo_models /tmp/gazebo_models

if [ -e /tmp/gazebo_models ]; then
echo "Install generic gazebo models"
echo "---- Install generic gazebo models ----"
mv -n /tmp/gazebo_models/* ~/.gazebo/models/
echo "Completed"
echo "---- Completed ----"
else
echo "Error"
echo "---- Error ----"
fi

echo "Install osrf_citysim models"
SCRIPT_DIR=$(cd $(dirname $0); pwd)
cp -rn $SCRIPT_DIR/../../../worlds/external/osrf_citysim/models/* ~/.gazebo/models/

echo "Install car_demo models"
cp -rn $SCRIPT_DIR/../../../worlds/external/car_demo/car_demo/models/* ~/.gazebo/models/
echo "---- Install models ----"
cp -rn $(rospack find gazebo_world_description)/models/* ~/.gazebo/models/
echo "---- Completed ----"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/sh

SCRIPT_DIR=$(cd $(dirname $0); pwd)
$SCRIPT_DIR/download_model.sh
$SCRIPT_DIR/upgrade_gazebo_stable_version.sh
$SCRIPT_DIR/integrate_world_files.sh
rosrun vehicle_gazebo_simulation_launcher download_model.sh
rosrun vehicle_gazebo_simulation_launcher upgrade_gazebo_stable_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ find_package(catkin REQUIRED)

catkin_package()

install(DIRECTORY worlds
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(CODE "execute_process( \
COMMAND cp -rL \
${CMAKE_CURRENT_SOURCE_DIR}/worlds/ \
${CMAKE_INSTALL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/)"
)

install(CODE "execute_process( \
COMMAND cp -rL \
${CMAKE_CURRENT_SOURCE_DIR}/models/ \
${CMAKE_INSTALL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/)"
)

This file was deleted.

4 changes: 3 additions & 1 deletion ros/src/util/packages/runtime_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ catkin_install_python(PROGRAMS
scripts/test_srv.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

install(FILES
install(PROGRAMS
scripts/3dm_gx5_15.sh
scripts/add_perm.sh
scripts/adis16470.sh
scripts/avt_vimba.sh
scripts/gazebo.sh
scripts/mti300.sh
scripts/vg440.sh
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/scripts)

install(FILES
scripts/computing.yaml
scripts/data.yaml
scripts/empty.yaml
Expand Down

0 comments on commit 3ebbc7b

Please sign in to comment.