Skip to content

Commit 6a00bc4

Browse files
authored
Merge pull request #77 from k-okada/fix_travis
fix travis compile
2 parents d2faec0 + 3384c9f commit 6a00bc4

10 files changed

+30
-13
lines changed

.travis.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ env:
1313
global:
1414
- JOB_PATH=/tmp/devel_job
1515
- ABORT_ON_TEST_FAILURE=1
16+
- INDEX_URL=https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml
1617
matrix:
17-
- ROS_DISTRO_NAME=indigo OS_NAME=ubuntu OS_CODE_NAME=trusty ARCH=amd64
18+
- ROS_DISTRO_NAME=indigo OS_NAME=ubuntu OS_CODE_NAME=trusty ARCH=amd64 INDEX_URL=https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/6a93d17/index.yaml
1819
- ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64
19-
- ROS_DISTRO_NAME=lunar OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64
2020
- ROS_DISTRO_NAME=melodic OS_NAME=ubuntu OS_CODE_NAME=bionic ARCH=amd64
21-
# matrix:
22-
# allow_failures:
23-
# - env: ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64
21+
# matrix:
22+
# allow_failures:
23+
# - env: ROS_DISTRO_NAME=indigo OS_NAME=ubuntu OS_CODE_NAME=trusty ARCH=amd64
2424
install:
2525
# either install the latest released version of ros_buildfarm
2626
- pip install ros_buildfarm
@@ -32,15 +32,15 @@ install:
3232
# run devel job for a ROS repository with the same name as this repo
3333
- export REPOSITORY_NAME=`basename $TRAVIS_BUILD_DIR`
3434
# use the code already checked out by Travis
35-
- mkdir -p $JOB_PATH/catkin_workspace/src
36-
- cp -R $TRAVIS_BUILD_DIR $JOB_PATH/catkin_workspace/src/
35+
- mkdir -p $JOB_PATH/ws/src
36+
- cp -R $TRAVIS_BUILD_DIR $JOB_PATH/ws/src/
3737
# generate the script to run a pre-release job for that target and repo
38-
- generate_prerelease_script.py https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml $ROS_DISTRO_NAME default $OS_NAME $OS_CODE_NAME $ARCH --output-dir $JOB_PATH
38+
- generate_prerelease_script.py $INDEX_URL $ROS_DISTRO_NAME default $OS_NAME $OS_CODE_NAME $ARCH --output-dir $JOB_PATH
3939
# run the actual job which involves Docker
4040
- cd $JOB_PATH; sh ./prerelease.sh -y
4141
script:
4242
# get summary of test results
43-
- /tmp/catkin/bin/catkin_test_results $JOB_PATH/catkin_workspace/test_results --all
43+
- /tmp/catkin/bin/catkin_test_results $JOB_PATH/ws/test_results --all
4444
notifications:
4545
email: false
4646

ethercat_hardware/include/ethercat_hardware/ethercat_hardware.h

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
#ifndef ETHERCAT_HARDWARE_H
3636
#define ETHERCAT_HARDWARE_H
3737

38+
#include <iostream>
39+
#include <string>
40+
#include <vector>
41+
3842
#include <pr2_hardware_interface/hardware_interface.h>
3943

4044
#include <al/ethercat_AL.h>
@@ -52,6 +56,8 @@
5256
#include <boost/accumulators/statistics/max.hpp>
5357
#include <boost/accumulators/statistics/mean.hpp>
5458

59+
#include <boost/shared_ptr.hpp>
60+
5561
#include <boost/thread/thread.hpp>
5662
#include <boost/thread/mutex.hpp>
5763
#include <boost/thread/condition_variable.hpp>

ethercat_hardware/include/ethercat_hardware/motor_heating_model.h

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
#include <boost/utility.hpp>
4646
#include <boost/thread/mutex.hpp>
47+
#include <boost/thread/thread.hpp>
4748
#include <boost/shared_ptr.hpp>
4849

4950
#include <vector>

ethercat_hardware/src/ethercat_hardware.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* POSSIBILITY OF SUCH DAMAGE.
3333
*********************************************************************/
3434

35+
#include <vector>
36+
3537
#include "ethercat_hardware/ethercat_hardware.h"
3638

3739
#include <ethercat/ethercat_xenomai_drv.h>
@@ -42,8 +44,11 @@
4244

4345
#include <net/if.h>
4446
#include <sys/ioctl.h>
47+
#include <boost/bind.hpp>
4548
#include <boost/foreach.hpp>
4649
#include <boost/regex.hpp>
50+
#include <boost/shared_ptr.hpp>
51+
#include <boost/thread/thread.hpp>
4752

4853
EthercatHardwareDiagnostics::EthercatHardwareDiagnostics() :
4954

ethercat_hardware/src/motor_heating_model.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#include <boost/bind.hpp>
4141
#include <boost/foreach.hpp>
4242
#include <boost/timer.hpp>
43+
#include <boost/thread/mutex.hpp>
44+
#include <boost/thread/thread.hpp>
4345

4446
// Use XML format when saving or loading XML file
4547
#include <tinyxml.h>
@@ -712,7 +714,10 @@ bool MotorHeatingModel::saveTemperatureState()
712714
{
713715
int error = errno;
714716
char errbuf[100];
715-
strerror_r(error, errbuf, sizeof(errbuf));
717+
if (strerror_r(error, errbuf, sizeof(errbuf)) != 0)
718+
{
719+
memcpy(errbuf, "Unknown error\0", 14);
720+
}
716721
errbuf[sizeof(errbuf)-1] = '\0';
717722
ROS_WARN("Problem renaming '%s' to '%s' : (%d) '%s'",
718723
tmp_filename.c_str(), save_filename_.c_str(), error, errbuf);

ethercat_hardware/src/motorconf.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#include <ethercat_hardware/wg021.h>
5353
#include <ethercat_hardware/wg014.h>
5454

55-
#include <boost/crc.hpp>
5655
#include <boost/foreach.hpp>
5756

5857
#include <net/if.h>

ethercat_hardware/src/wg021.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include <dll/ethercat_device_addressed_telegram.h>
4545
#include <dll/ethercat_frame.h>
4646

47-
#include <boost/crc.hpp>
4847
#include <boost/static_assert.hpp>
4948

5049
#include "ethercat_hardware/wg_util.h"

ethercat_hardware/src/wg05.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include <dll/ethercat_device_addressed_telegram.h>
4545
#include <dll/ethercat_frame.h>
4646

47-
#include <boost/crc.hpp>
4847
#include <boost/static_assert.hpp>
4948

5049
PLUGINLIB_EXPORT_CLASS(WG05, EthercatDevice);

ethercat_hardware/src/wg0x.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include <dll/ethercat_frame.h>
4646

4747
#include <boost/crc.hpp>
48+
#include <boost/shared_ptr.hpp>
4849
#include <boost/static_assert.hpp>
4950
#include <boost/make_shared.hpp>
5051

ethercat_hardware/src/wg_eeprom.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#include "ethercat_hardware/wg_eeprom.h"
3636
#include "ros/ros.h"
3737

38+
#include <boost/static_assert.hpp>
39+
#include <boost/thread/mutex.hpp>
3840
#include <boost/thread.hpp>
3941

4042
namespace ethercat_hardware

0 commit comments

Comments
 (0)