Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions WORKSPACE → WORKSPACE.in
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,12 @@ new_http_archive(
build_file = "third_party/curlpp.BUILD",
strip_prefix = "curlpp-0.8.1",
)

#ros
new_http_archive(
name = "ros",
url = "https://github.com/ApolloAuto/apollo-platform/releases/download/1.0.0/ros-indigo-apollo-1.0.0.MACHINE_ARCH.tar.gz",
build_file = "third_party/ros.BUILD",
strip_prefix = "ros",
)

6 changes: 3 additions & 3 deletions apollo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ TEST_TARGETS=""
rm -rf ./third_party/ros
if [ "$MACHINE_ARCH" == 'x86_64' ]; then
IS_X86_64=true
sed "s/MACHINE_ARCH/x86_64/g" WORKSPACE.in > WORKSPACE
elif [ "$MACHINE_ARCH" == 'aarch64' ]; then
IS_AARCH64=true
sed "s/MACHINE_ARCH/aarch64/g" WORKSPACE.in > WORKSPACE
fi

if ! $IS_X86_64 && ! $IS_AARCH64 ; then
fail "Unknown machine architecture $MACHINE_ARCH"
exit 1
else
ln -rs "$(pwd)/third_party/ros_$MACHINE_ARCH" "$(pwd)/third_party/ros"
fi

function check_esd_files() {
Expand Down Expand Up @@ -170,7 +170,7 @@ function release() {
find modules/ -name "*.pyc" | xargs -I {} rm {}
cp -r modules/tools $MODULES_DIR
#ros
cp -Lr third_party/ros $ROOT_DIR/
cp -Lr bazel-apollo/external/ros $ROOT_DIR/
#scripts
cp -r scripts $ROOT_DIR
#dreamview
Expand Down
3 changes: 0 additions & 3 deletions docker/scripts/dev_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ function main(){
--shm-size 512M \
$IMG
docker exec apollo_dev bash -c '/apollo/scripts/docker_adduser.sh'
docker exec apollo_dev bash -c 'rm -rf /apollo/third_party/ros_*'
docker exec apollo_dev bash -c 'cp -Lr /root/ros_* /apollo/third_party/'
docker exec apollo_dev bash -c "chown -R ${USER}:${USER} /apollo"
}

main
2 changes: 1 addition & 1 deletion modules/canbus/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cc_binary(
"//modules/canbus/common:canbus_common",
"//modules/common:log",
"//modules/common/monitor",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/canbus/canbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <utility>
#include <vector>

#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/canbus/can_client/can_client.h"
#include "modules/canbus/can_comm/can_receiver.h"
Expand Down
4 changes: 2 additions & 2 deletions modules/canbus/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cc_binary(
deps = [
"//modules/canbus:canbus_lib",
"//modules/common",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand All @@ -19,6 +19,6 @@ cc_binary(
"//modules/common",
"//modules/common/adapters:adapter_manager",
"//modules/control/proto:control_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)
2 changes: 1 addition & 1 deletion modules/canbus/tools/canbus_tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "modules/common/adapters/adapter_gflags.h"
#include "modules/common/log.h"
#include "std_msgs/String.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/canbus/common/canbus_gflags.h"
#include "modules/common/util/file.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/canbus/tools/teleop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "modules/common/macro.h"
#include "modules/common/time/time.h"
#include "modules/control/proto/control_cmd.pb.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

// gflags
DEFINE_double(throttle_inc_delta, 2.0,
Expand Down
4 changes: 2 additions & 2 deletions modules/common/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cc_library(
deps = [
":log",
":macro",
"//third_party/ros:ros_common",
"@ros//:ros_common",
"@glog//:glog",
],
)
Expand Down Expand Up @@ -38,7 +38,7 @@ cc_library(
deps = [
"//modules/common/status",
"//modules/hmi/utils:hmi_status_helper",
"//third_party/ros:ros_common",
"@ros//:ros_common",
"@glog//:glog",
],
)
2 changes: 1 addition & 1 deletion modules/common/adapters/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cc_library(
"//modules/common/adapters/proto:adapter_config_proto",
"//modules/common/monitor/proto:monitor_proto",
"//modules/common/util",
"//third_party/ros:ros_common",
"@ros//:ros_common",
"@glog//:glog",
],
)
Expand Down
2 changes: 1 addition & 1 deletion modules/common/adapters/adapter_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "modules/common/log.h"
#include "modules/common/macro.h"

#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

/**
* @namespace apollo::common::adapter
Expand Down
2 changes: 1 addition & 1 deletion modules/common/apollo_app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "modules/common/status/status.h"
#include "modules/hmi/utils/hmi_status_helper.h"

#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

namespace apollo {
namespace common {
Expand Down
2 changes: 1 addition & 1 deletion modules/common/apollo_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "modules/common/status/status.h"
#include "modules/hmi/utils/hmi_status_helper.h"

#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

/**
* @namespace apollo::common
Expand Down
2 changes: 1 addition & 1 deletion modules/control/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cc_library(
"//modules/perception/proto:perception_proto",
"//modules/planning/proto:planning_proto",
"//modules/prediction/proto:prediction_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/control/control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "modules/common/time/time.h"
#include "modules/control/common/control_gflags.h"
#include "modules/localization/proto/localization.pb.h"
#include "third_party/ros/include/std_msgs/String.h"
#include "ros/include/std_msgs/String.h"

namespace apollo {
namespace control {
Expand Down
2 changes: 1 addition & 1 deletion modules/control/controller/controller_agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "modules/control/proto/control_cmd.pb.h"
#include "modules/control/proto/control_conf.pb.h"
#include "modules/planning/proto/planning.pb.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

/**
* @namespace apollo::control
Expand Down
2 changes: 1 addition & 1 deletion modules/control/integration_tests/control_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "modules/common/util/file.h"
#include "modules/control/integration_tests/control_test_base.h"
#include "modules/control/proto/control_cmd.pb.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

DEFINE_string(test_chassis_file, "", "chassis input file");
DEFINE_string(test_data_dir, "", "the test data folder");
Expand Down
6 changes: 3 additions & 3 deletions modules/control/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cc_binary(
"//modules/common/adapters:adapter_manager",
"//modules/control/common",
"//modules/control/proto:control_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand All @@ -24,7 +24,7 @@ cc_binary(
"//modules/canbus/proto:canbus_proto",
"//modules/common/adapters:adapter_manager",
"//modules/control/common",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand All @@ -38,7 +38,7 @@ cc_binary(
"//modules/control/common:control_gflags",
"//modules/localization/proto:localization_proto",
"//modules/planning/proto:planning_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/control/tools/terminal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "modules/control/common/control_gflags.h"
#include "modules/control/proto/pad_msg.pb.h"
#include "std_msgs/String.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

namespace {

Expand Down
4 changes: 2 additions & 2 deletions modules/decision/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cc_library(
"//modules/common/time",
"//modules/decision/common:decision_common",
"//modules/decision/proto:decision_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
"@glog//:glog",
],
)
Expand All @@ -28,7 +28,7 @@ cc_binary(
"//modules/decision:lib_decision",
"//modules/decision/common:decision_common",
"//modules/decision/proto:decision_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/decision/decision.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define MODULES_DECISION_DECISION_H_

#include <string>
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/common/apollo_app.h"
#include "modules/common/macro.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/decision/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "gflags/gflags.h"
#include "modules/common/log.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/decision/common/decision_gflags.h"
#include "modules/decision/decision.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/hmi/ros_node/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cc_binary(
"//modules/control/common",
"//modules/control/proto:control_proto",
"//modules/hmi/proto:ros_node_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
"@com_github_google_protobuf//:protobuf",
],
)
2 changes: 1 addition & 1 deletion modules/localization/camera/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cc_library(
"//modules/localization/proto:camera_proto",
"//modules/localization/proto:localization_config_proto",
"//modules/localization/proto:localization_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/localization/camera/camera_localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "modules/localization/proto/gps.pb.h"
#include "modules/localization/proto/imu.pb.h"
#include "modules/localization/proto/localization.pb.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

/**
* @namespace apollo::localization
Expand Down
2 changes: 1 addition & 1 deletion modules/localization/rtk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cc_library(
"//modules/localization/common:localization_common",
"//modules/localization/proto:localization_config_proto",
"//modules/localization/proto:localization_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/localization/rtk/rtk_localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "modules/localization/proto/gps.pb.h"
#include "modules/localization/proto/imu.pb.h"
#include "modules/localization/proto/localization.pb.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

/**
* @namespace apollo::localization
Expand Down
2 changes: 1 addition & 1 deletion modules/monitor/hwmonitor/hw_check/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cc_binary(
"//modules/hmi/utils:hmi_status_helper",
"//modules/monitor/hwmonitor/hw:platform_hw_log_module_lib",
"//modules/monitor/hwmonitor/hw/esdcan:esdcan_checker_lib",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/monitor/hwmonitor/hw_check/gps_check.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "modules/monitor/hwmonitor/hw_check/hw_chk_utils.h"

#include "modules/common/proto/gnss_status.pb.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

using apollo::platform::HwCheckResult;
using apollo::platform::hw::Status;
Expand Down
2 changes: 1 addition & 1 deletion modules/perception/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cc_binary(
"//modules/common:log",
"//modules/perception/common:perception_common",
"//modules/perception/proto:perception_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/perception/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "gflags/gflags.h"
#include "modules/common/log.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/perception/perception.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/perception/perception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "modules/common/adapters/adapter_manager.h"
#include "modules/perception/common/perception_gflags.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

namespace apollo {
namespace perception {
Expand Down
2 changes: 1 addition & 1 deletion modules/perception/perception.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "modules/common/apollo_app.h"
#include "modules/common/macro.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

/**
* @namespace apollo::perception
Expand Down
2 changes: 1 addition & 1 deletion modules/planning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cc_library(
"//modules/planning/planner:lib_planner",
"//modules/planning/proto:planning_proto",
"//modules/prediction/proto:prediction_proto",
"//third_party/ros:ros_common",
"@ros//:ros_common",
],
)

Expand Down
2 changes: 1 addition & 1 deletion modules/planning/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "gflags/gflags.h"
#include "modules/common/log.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

int main(int argc, char **argv) {
google::InitGoogleLogging(argv[0]);
Expand Down
2 changes: 1 addition & 1 deletion modules/prediction/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "gflags/gflags.h"
#include "modules/common/log.h"
#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/prediction/prediction.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/prediction/prediction.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef MODULES_PREDICTION_PREDICTION_H_
#define MODULES_PREDICTION_PREDICTION_H_

#include "third_party/ros/include/ros/ros.h"
#include "ros/include/ros/ros.h"

#include "modules/common/apollo_app.h"
#include "modules/common/macro.h"
Expand Down
Loading