Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Fixes for all packages and dependencies #1240

Merged
merged 99 commits into from
May 8, 2018
Merged
Show file tree
Hide file tree
Changes from 96 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
0453b6c
Initial Cleanup
amc-nu Mar 13, 2018
9931eeb
fixed also for indigo
amc-nu Mar 14, 2018
1833e5e
Merge branch 'develop' into fix/cmake_cleanup
amc-nu Mar 14, 2018
ea1a9e1
Merge branch 'develop' into fix/cmake_cleanup
amc-nu Apr 2, 2018
575874d
kf cjeck
amc-nu Apr 9, 2018
9ba9c61
Merge branch 'develop' into fix/cmake_cleanup
amc-nu Apr 14, 2018
b168501
Merge branch 'fix/cmake_cleanup' of https://github.com/CPFL/Autoware …
amc-nu Apr 14, 2018
4102041
Fix road wizard
amc-nu Apr 14, 2018
2030151
Added travis ci
amc-nu Apr 14, 2018
bc1cc09
Trigger CI
amc-nu Apr 14, 2018
b178f7d
Fixes to cv_tracker and lidar_tracker cmake
amc-nu Apr 14, 2018
e9b3a6e
Fix kitti player dependencies
amc-nu Apr 14, 2018
75fa3ef
Removed unnecessary dependencies
amc-nu Apr 14, 2018
0af2b00
messages fixing for can
amc-nu Apr 14, 2018
2724a8a
Update build script travis
amc-nu Apr 14, 2018
77b8ae3
Travis Path
amc-nu Apr 14, 2018
30a392f
Travis Paths fix
amc-nu Apr 14, 2018
6d4f527
Travis test
amc-nu Apr 14, 2018
8b27335
Eigen checks
amc-nu Apr 14, 2018
2d49cc9
removed unnecessary dependencies
amc-nu Apr 14, 2018
bea231f
Eigen Detection
amc-nu Apr 14, 2018
c999e85
Job number reduced
amc-nu Apr 14, 2018
b20a6a5
Eigen3 more fixes
amc-nu Apr 14, 2018
4a6df7c
More Eigen3
amc-nu Apr 14, 2018
5e51436
Even more Eigen
amc-nu Apr 14, 2018
e83bbac
find package cmake modules included
amc-nu Apr 15, 2018
92c568a
More fixes to cmake modules
amc-nu Apr 15, 2018
bb64504
Removed non ros dependency
amc-nu Apr 16, 2018
a311d34
Enable industrial_ci for indidog and kinetic
amc-nu Apr 16, 2018
c98bd7d
Wrong install command
amc-nu Apr 16, 2018
54903fd
fix rviz_plugin install
amc-nu Apr 16, 2018
07acaac
FastVirtualScan fix
amc-nu Apr 16, 2018
dfc641b
Fix Qt5 Fastvirtualscan
amc-nu Apr 16, 2018
0e32f88
Fixed qt5 system dependencies for rosdep
amc-nu Apr 16, 2018
d8bc116
NDT TKU Fix catkin not pacakged
amc-nu Apr 16, 2018
8e6ba29
More in detail dependencies fixes for more packages
amc-nu Apr 20, 2018
50ca492
GLEW library for ORB
amc-nu Apr 20, 2018
c42c052
Ignore OrbLocalizer
amc-nu Apr 20, 2018
4a0ad64
Ignore Version checker
amc-nu Apr 20, 2018
ef7856e
Fix for driveworks interface
amc-nu Apr 20, 2018
fd16c87
driveworks not catkinpackagedd
amc-nu Apr 21, 2018
e091647
Missing catkin for driveworks
amc-nu Apr 21, 2018
0ae3269
libdpm opencv not catkin packaged
amc-nu Apr 21, 2018
8514fc8
catkin lib gnss not included in obj_db
amc-nu Apr 21, 2018
c581aa3
Points2Polygon fix
amc-nu Apr 21, 2018
c40e550
More missing dependencies
amc-nu Apr 21, 2018
44863ff
image viewer not packaged
amc-nu Apr 21, 2018
10c615a
Fixed SSH2 detection, added viewers for all distros
amc-nu Apr 22, 2018
e5279e4
Fix gnss localizer incorrect dependency config
amc-nu Apr 22, 2018
e429828
Fixes to multiple packages dependencies
amc-nu Apr 22, 2018
d4197f7
gnss plib and package
amc-nu Apr 22, 2018
12d7c01
More fixes to gnss
amc-nu Apr 22, 2018
930f327
gnss dependencies for gnss_loclaizer
amc-nu Apr 22, 2018
12753ed
Missing gnss dependency for gnss on localizer
amc-nu Apr 23, 2018
92efa31
More fixes for dependencies
amc-nu Apr 23, 2018
1dfc181
gnss more fixes
amc-nu Apr 23, 2018
6bf66a2
fixes to more dependencies
amc-nu Apr 23, 2018
f9bf78b
header dependency
amc-nu Apr 23, 2018
7d0b765
Debug message
amc-nu Apr 23, 2018
fed8a91
more debug messages changed back to gnss
amc-nu Apr 23, 2018
633c913
debud messages
amc-nu Apr 23, 2018
ff0f1e1
gnss test
amc-nu Apr 23, 2018
f27a113
gnss install command
amc-nu Apr 23, 2018
1e0ebda
Several fixes for OpenPlanner and its lbiraries
amc-nu Apr 24, 2018
b299b88
Fixes to ROSInterface
amc-nu Apr 24, 2018
f3cd1df
More fixes to robotsdk and rosinterface
amc-nu Apr 24, 2018
c8a3703
robotsdk calibration fix
amc-nu Apr 24, 2018
c64cc34
Fixes to rosinterface robotsdk libraries and its nodes
amc-nu Apr 24, 2018
f7adede
Fixes to Qt5 missing dependencies in robotsdk
amc-nu Apr 24, 2018
d8d8afd
glviewer missing dependencies
amc-nu Apr 24, 2018
7b7c9a7
Missing qt specific config cmake for robotsdk
amc-nu Apr 24, 2018
b1d0d91
disable cv_tracker
amc-nu Apr 24, 2018
ec7d242
Fix to open planner un needed dependendecies
amc-nu Apr 24, 2018
65ed856
Fixes for libraries indecision maker
amc-nu Apr 24, 2018
69d3e3d
Fixes to libraries decision_maker installation
amc-nu Apr 24, 2018
d4ebdd6
Gazebo on Kinetic
amc-nu Apr 25, 2018
d97d110
Added Missing library
amc-nu Apr 25, 2018
8c0254b
* Removed Gazebo and synchonization packages
amc-nu Apr 25, 2018
817f062
Fixes to lane_planner
amc-nu Apr 25, 2018
5b06f16
Added NDT TKU Glut extra dependencies
amc-nu Apr 25, 2018
583c3db
ndt localizer/lib fast pcl fixes
amc-nu Apr 25, 2018
956cba1
Fix kf_lib
amc-nu Apr 25, 2018
24dc292
Merge branch 'develop' into feature/industrial_ci
amc-nu Apr 25, 2018
ff59361
Keep industrial_ci
amc-nu Apr 25, 2018
6d8a73e
Fixes for dpm library
amc-nu Apr 25, 2018
fa1404a
Fusion lib fixed
amc-nu Apr 25, 2018
cf89072
dpm and fusion header should match exported project name
amc-nu Apr 25, 2018
480fda8
Fixes to dpm_ocv ndt_localizer and pcl_omp
amc-nu Apr 26, 2018
8dc2690
no fast_pcl anymore
amc-nu Apr 26, 2018
c82aead
Merge branch 'develop' into feature/industrial_ci
amc-nu Apr 27, 2018
91f2403
fixes to libdpm and its package
amc-nu Apr 27, 2018
c08b154
CI test
amc-nu Apr 27, 2018
d7f2803
test with native travis ci
amc-nu Apr 27, 2018
73be432
missing update for apt
amc-nu Apr 27, 2018
806d818
Fixes to pcl_omp installation and headers
amc-nu May 1, 2018
bfc1521
Merge branch 'develop' into feature/industrial_ci
yk-fujii May 2, 2018
97c535c
Final fixes for tests, modified README
amc-nu May 7, 2018
fe63b9e
* Fixes to README
amc-nu May 7, 2018
97ab81c
re enable native travis tests
amc-nu May 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 22 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
# Use ubuntu trusty (14.04) with sudo privileges.
dist: trusty
sudo: required
language:
- generic
cache:
- apt

matrix:
include:
- dist: xenial
compiler: gcc
os: linux
sudo: required
env: ROS_DISTRO=kinetic
- dist: trusty
compiler: gcc
os: linux
sudo: required
env: ROS_DISTRO=indigo
notifications:
email:
on_success: always
on_failure: always
recipients:
- abrahammonrroy@yahoo.com
env:
global:
- ROS_DISTRO=indigo
- ROS_CI_DESKTOP="`lsb_release -cs`" # e.g. [precise|trusty|...]
- ROS_CI_DESKTOP="`lsb_release -cs`"
- CI_SOURCE_PATH=$(pwd)
- ROSINSTALL_FILE=$CI_SOURCE_PATH/dependencies.rosinstall
- CATKIN_OPTIONS=$CI_SOURCE_PATH/catkin.options
# Set the python path manually to include /usr/-/python2.7/dist-packages
# as this is where apt-get installs python packages.
- PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages

# Install system dependencies, and Autoware pre requisites (non-ros)
before_install:
- sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list"
- sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
# Autoware pre requisites
- sudo apt-get install -y libnlopt-dev freeglut3-dev qtbase5-dev libqt5opengl5-dev libssh2-1-dev libarmadillo-dev libpcap-dev gksu libgl1-mesa-dev libglew-dev software-properties-common libyaml-cpp-dev python-flask python-requests libeigen3-dev
- sudo add-apt-repository ppa:mosquitto-dev/mosquitto-ppa -y
- sudo apt-get update -qq
- sudo apt-get install -y libmosquitto-dev python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin
# Autoware pre requisites should be installed automatically by rosdep not in here
- sudo apt-get update
- sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin
- source /opt/ros/$ROS_DISTRO/setup.bash
- sudo rosdep init
- rosdep update
Expand Down
63 changes: 36 additions & 27 deletions ros/src/actuation/vehicles/packages/as/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,40 +1,49 @@
cmake_minimum_required(VERSION 2.8.3)
project(as)

# If submodule is not cloned this project will not be build.
set(AS_MSG_PATH "${CMAKE_SOURCE_DIR}/msgs/platform_automation_msgs/module_comm_msgs")
if(EXISTS "${AS_MSG_PATH}")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving this IF statement always makes catkin search for module_comm_msgs.
So, I got error:

-- Could not find the required component 'module_comm_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "module_comm_msgs"
  with any of the following names:

    module_comm_msgsConfig.cmake
    module_comm_msgs-config.cmake

  Add the installation prefix of "module_comm_msgs" to CMAKE_PREFIX_PATH or
  set "module_comm_msgs_DIR" to a directory containing one of the above
  files.  If "module_comm_msgs" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  actuation/vehicles/packages/as/CMakeLists.txt:4 (find_package)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're missing the as submodule.
Please run:
git submodule update --init --recursive

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know to need git submodule update --init --recursive
But, I think that autoware does not necessarily need to compile "as" package because problems often occur frequently by not executing this command.

If you want to use "as" default, I think that you need to include this command in catkin_make_release, install manual, or etc.
How about you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then if this package is not needed I recommend to add a CATKIN_IGNORE

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


find_package(
catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
module_comm_msgs
dbw_mkz_msgs
catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
module_comm_msgs
dbw_mkz_msgs
)

catkin_package(
CATKIN_DEPENDS
roscpp
std_msgs
geometry_msgs
module_comm_msgs
dbw_mkz_msgs
CATKIN_DEPENDS
roscpp
std_msgs
geometry_msgs
module_comm_msgs
dbw_mkz_msgs
)

SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -g -Wall ${CMAKE_CXX_FLAGS}")
# If submodule is not cloned this project will not be build.
set(AS_MSG_PATH "${CMAKE_SOURCE_DIR}/msgs/platform_automation_msgs/module_comm_msgs")
if (EXISTS "${AS_MSG_PATH}")

SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -g -Wall ${CMAKE_CXX_FLAGS}")

include_directories(
${catkin_INCLUDE_DIRS}
)
include_directories(
${catkin_INCLUDE_DIRS}
)

add_executable(pacmod_interface
nodes/pacmod_interface/pacmod_interface_node.cpp
nodes/pacmod_interface/pacmod_interface.cpp
)
target_link_libraries(pacmod_interface ${catkin_LIBRARIES})
add_dependencies(pacmod_interface ${catkin_EXPORTED_TARGETS})

install(TARGETS pacmod_interface
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

add_executable(pacmod_interface
nodes/pacmod_interface/pacmod_interface_node.cpp
nodes/pacmod_interface/pacmod_interface.cpp
)
target_link_libraries(pacmod_interface ${catkin_LIBRARIES})
add_dependencies(pacmod_interface ${catkin_EXPORTED_TARGETS} )
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)

endif()
endif ()
62 changes: 31 additions & 31 deletions ros/src/actuation/vehicles/packages/ymc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,50 @@ project(ymc)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall ${CMAKE_CXX_FLAGS}")

find_package(
catkin REQUIRED COMPONENTS
roscpp
geometry_msgs
rosconsole
)
catkin REQUIRED COMPONENTS
roscpp
geometry_msgs
rosconsole
)

catkin_package(
CATKIN_DEPENDS
roscpp
geometry_msgs
rosconsole
)
CATKIN_DEPENDS
roscpp
geometry_msgs
rosconsole
)


EXECUTE_PROCESS(
COMMAND uname -m
OUTPUT_VARIABLE ARCHITECTURE
OUTPUT_STRIP_TRAILING_WHITESPACE
COMMAND uname -m
OUTPUT_VARIABLE ARCHITECTURE
OUTPUT_STRIP_TRAILING_WHITESPACE
)


IF("${ARCHITECTURE}" STREQUAL "aarch64")
set(LIB_ARCH _aarch64)
ELSE()
unset(LIB_ARCH)
ENDIF()
IF ("${ARCHITECTURE}" STREQUAL "aarch64")
set(LIB_ARCH _aarch64)
ELSE ()
unset(LIB_ARCH)
ENDIF ()

include_directories(
${catkin_INCLUDE_DIRS}
include
)
${catkin_INCLUDE_DIRS}
include
)

IF(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.1)
set(LIB_VERSION 2.0) # _GLIBCXX_USE_CXX11_ABI is 1
ELSE()
set(LIB_VERSION 1.0) # _GLIBCXX_USE_CXX11_ABI is 0
ENDIF()
IF (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.1)
set(LIB_VERSION 2.0) # _GLIBCXX_USE_CXX11_ABI is 1
ELSE ()
set(LIB_VERSION 1.0) # _GLIBCXX_USE_CXX11_ABI is 0
ENDIF ()

find_library(ymc_can NAMES libymc_can_${LIB_VERSION}${LIB_ARCH}.a PATHS lib)
add_executable(g30esli_interface
node/g30esli_interface/g30esli_interface.cpp
)
node/g30esli_interface/g30esli_interface.cpp
)

target_link_libraries(g30esli_interface
${catkin_LIBRARIES}
${ymc_can}
)
${catkin_LIBRARIES}
${ymc_can}
)
50 changes: 28 additions & 22 deletions ros/src/computing/perception/detection/lib/fusion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,46 @@ cmake_minimum_required(VERSION 2.8.3)
project(fusion)

find_package(catkin REQUIRED COMPONENTS
roscpp
cv_bridge
autoware_msgs
)
roscpp
cv_bridge
autoware_msgs
)
find_package(OpenCV REQUIRED)

catkin_package(
INCLUDE_DIRS include
LIBRARIES fusion
CATKIN_DEPENDS roscpp autoware_msgs
INCLUDE_DIRS include
LIBRARIES fusion
CATKIN_DEPENDS roscpp autoware_msgs cv_bridge
)

SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -g -Wall ${CMAKE_CXX_FLAGS}")

include_directories(
include
${catkin_INCLUDE_DIRS}
include
${catkin_INCLUDE_DIRS}
)

add_library(fusion
fusion.cpp
search_distance.cpp
)
src/fusion.cpp
src/search_distance.cpp
)

target_link_libraries(fusion
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
add_dependencies(fusion
${catkin_EXPORTED_TARGETS}
)
${catkin_EXPORTED_TARGETS}
)

# Mark cpp header files for installation
install(DIRECTORY include
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "fusion_func.h"
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
)

install(TARGETS
fusion
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)
26 changes: 14 additions & 12 deletions ros/src/computing/perception/detection/lib/fusion/package.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?xml version="1.0"?>
<package>
<name>fusion</name>
<version>1.6.3</version>
<description>The fusion package</description>
<maintainer email="kondoh@axe-inc.co.jp">Masao KONDOH</maintainer>
<license>BSD</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>autoware_msgs</build_depend>
<run_depend>roscpp</run_depend>
<run_depend>autoware_msgs</run_depend>
<export>
</export>
<name>fusion</name>
<version>1.6.3</version>
<description>The fusion package</description>
<maintainer email="kondoh@axe-inc.co.jp">Masao KONDOH</maintainer>
<license>BSD</license>
<buildtool_depend>catkin</buildtool_depend>

<build_depend>roscpp</build_depend>
<build_depend>autoware_msgs</build_depend>
<build_depend>cv_bridge</build_depend>

<run_depend>roscpp</run_depend>
<run_depend>autoware_msgs</run_depend>
<run_depend>cv_bridge</run_depend>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include <opencv/highgui.h>
#include <opencv/cxcore.h>

#include "fusion_func.h"
#include "search_distance.h"
#include "fusion/fusion_func.h"
#include "fusion/search_distance.h"

#if _DEBUG //debug
static const char *window_name = "CAR_TRACK";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <algorithm>
#include <iterator>
#include <map>
#include "search_distance.h"
#include "fusion/search_distance.h"


float getShortest(const std::vector<float>& candidates) {
Expand Down