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
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ cache:

# Handle dependencies in separate directory.
before_install:
- TESTINST_DIR="${HOME}/dummy"
- mkdir -p "${TESTINST_DIR}"
- DEPS_DIR="${HOME}/deps"
- mkdir -p "${DEPS_DIR}"
- cd "${DEPS_DIR}"
Expand All @@ -40,9 +42,11 @@ before_script:
script:
- mkdir -p build
- cd build
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install ..
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install -D CMAKE_INSTALL_PREFIX:PATH=${TESTINST_DIR} ..
- cmake --build .
- cd ..
- python test_cases.py
- python setup.py build
- python setup.py sdist
- cd build
- cmake --build . --target install
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ foreach(LINE ${VERSION_CONTENTS})
endforeach()
set(OPEN_SIMULATION_INTERFACE_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})

set(INSTALL_LIB_DIR ${INSTALL_LIB_DIR}/osi${VERSION_MAJOR})
set(INSTALL_INCLUDE_DIR ${INSTALL_INCLUDE_DIR}/osi${VERSION_MAJOR})

configure_file(osi_version.proto.in ${CMAKE_CURRENT_SOURCE_DIR}/osi_version.proto)

find_package(Protobuf 2.6.1 REQUIRED)
Expand Down Expand Up @@ -105,7 +108,6 @@ install(TARGETS ${PROJECT_NAME}_pic
EXPORT ${PROJECT_NAME}_targets
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" COMPONENT lib)


add_library(${PROJECT_NAME} SHARED $<TARGET_OBJECTS:${PROJECT_NAME}_obj>)
target_include_directories(${PROJECT_NAME}
PUBLIC
Expand Down Expand Up @@ -141,7 +143,7 @@ install(FILES

# Header files
install(FILES ${PROTO_HEADERS}
DESTINATION "${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}")
DESTINATION "${INSTALL_INCLUDE_DIR}")

# Install the export set for use with the install-tree
install(EXPORT ${PROJECT_NAME}_targets
Expand Down
6 changes: 3 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION_MAJOR = 2
VERSION_MINOR = 2
VERSION_PATCH = 0
VERSION_MAJOR = 3
VERSION_MINOR = 0
VERSION_PATCH = 0
2 changes: 1 addition & 1 deletion osi_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto2";

option optimize_for = SPEED;

package osi;
package osi3;


//
Expand Down
2 changes: 1 addition & 1 deletion osi_datarecording.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_sensordata.proto";

package osi;
package osi3;

//
// \brief (Time) Series of \c SensorData messages that may be used for data
Expand Down
2 changes: 1 addition & 1 deletion osi_detectedlandmark.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "osi_common.proto";
import "osi_landmark.proto";
import "osi_detectedobject.proto";

package osi;
package osi3;

//
// \brief A traffic sign in the environment as detected by the sensor.
Expand Down
2 changes: 1 addition & 1 deletion osi_detectedlane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "osi_common.proto";
import "osi_lane.proto";
import "osi_detectedobject.proto";

package osi;
package osi3;

//
// \brief A lane segment as detected by the sensor.
Expand Down
2 changes: 1 addition & 1 deletion osi_detectedobject.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "osi_modelinternal.proto";
import "osi_object.proto";
import "osi_sensorspecific.proto";

package osi;
package osi3;

//
// \brief Object in the environment as detected and perceived by the sensor.
Expand Down
2 changes: 1 addition & 1 deletion osi_detectedoccupant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "osi_common.proto";
import "osi_occupant.proto";
import "osi_detectedobject.proto";

package osi;
package osi3;

//
// \brief A vehicle occupant as detected and perceived by an interior sensor.
Expand Down
2 changes: 1 addition & 1 deletion osi_environment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto2";

option optimize_for = SPEED;

package osi;
package osi3;

//
// \brief The conditions of the environment.
Expand Down
2 changes: 1 addition & 1 deletion osi_featuredata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief Interface for sensor data, in contrast to interpreted data after
Expand Down
2 changes: 1 addition & 1 deletion osi_groundtruth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "osi_lane.proto";
import "osi_object.proto";
import "osi_occupant.proto";

package osi;
package osi3;

//
// \brief The ground truth information from the simulation environment.
Expand Down
2 changes: 1 addition & 1 deletion osi_hostvehicledata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief Interface for host vehicle data that is available to sensors and
Expand Down
2 changes: 1 addition & 1 deletion osi_landmark.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief A traffic sign.
Expand Down
2 changes: 1 addition & 1 deletion osi_lane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief A lane in the road network.
Expand Down
2 changes: 1 addition & 1 deletion osi_modelinternal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ option optimize_for = SPEED;
import "osi_featuredata.proto";
import "osi_object.proto";

package osi;
package osi3;

//
// \brief Additional internal data and state flags for \c SensorData objects.
Expand Down
2 changes: 1 addition & 1 deletion osi_object.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief A vehicle (host or other).
Expand Down
2 changes: 1 addition & 1 deletion osi_occupant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief An occupant of a host vehicle, especially the driver of the vehicle.
Expand Down
2 changes: 1 addition & 1 deletion osi_sensordata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "osi_detectedoccupant.proto";
import "osi_sensorview.proto";
import "osi_featuredata.proto";

package osi;
package osi3;

//
// \brief The sensor information derived from \c GroundTruth and processed by
Expand Down
2 changes: 1 addition & 1 deletion osi_sensorspecific.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "osi_common.proto";

package osi;
package osi3;

//
// \brief Message encapsulates all data for detected objects that is specific to
Expand Down
4 changes: 2 additions & 2 deletions osi_sensorview.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "osi_groundtruth.proto";
import "osi_sensorviewconfiguration.proto";
import "osi_hostvehicledata.proto";

package osi;
package osi3;

//
// \brief The sensor view as derived from \c GroundTruth and used as
Expand Down Expand Up @@ -292,4 +292,4 @@ message UltrasonicSensorView
// Ultrasonic Input Configuration valid at the time the data was created.
//
optional UltrasonicSensorViewConfiguration view_configuration = 1;
}
}
2 changes: 1 addition & 1 deletion osi_sensorviewconfiguration.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ option optimize_for = SPEED;
import "osi_common.proto";
import "osi_version.proto";

package osi;
package osi3;

//
// \brief The configuration settings for the \c SensorView to be provided
Expand Down
2 changes: 1 addition & 1 deletion osi_version.proto.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ option optimize_for = SPEED;

import "google/protobuf/descriptor.proto";

package osi;
package osi3;

//
// \brief The interface version number.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
lineConfigured = lineConfigured.replace('@VERSION_PATCH@',str(VERSION_PATCH))
fout.write(lineConfigured)

package_name = 'osi'
package_name = 'osi3'
package_path = os.path.join(os.getcwd(), package_name)

class GenerateProtobuf(install):
Expand Down