Skip to content

Commit

Permalink
Merge pull request #1 from jginesclavero/eloquent-dev
Browse files Browse the repository at this point in the history
ROS eloquent migration of all existing message definitions
  • Loading branch information
tlind authored Oct 19, 2020
2 parents 68c3a76 + 2aa3946 commit 0365463
Show file tree
Hide file tree
Showing 23 changed files with 218 additions and 250 deletions.
File renamed without changes.
52 changes: 20 additions & 32 deletions spencer_human_attribute_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,39 +1,27 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.5)
project(spencer_human_attribute_msgs)

find_package(catkin REQUIRED COMPONENTS
roscpp
roslib
std_msgs
message_generation
)

################################################
## Declare ROS messages, services and actions ##
################################################
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

# Generate messages in the 'msg' folder
add_message_files(
FILES
CategoricalAttribute.msg
ScalarAttribute.msg
HumanAttributes.msg
)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# Generate services in the 'srv' folder
#add_service_files(
# FILES
#)
find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)

## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/CategoricalAttribute.msg"
"msg/ScalarAttribute.msg"
"msg/HumanAttributes.msg"
DEPENDENCIES builtin_interfaces std_msgs
)

###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS roscpp std_msgs message_runtime
)
ament_export_dependencies(rosidl_default_runtime)

ament_package()
4 changes: 2 additions & 2 deletions spencer_human_attribute_msgs/msg/HumanAttributes.msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
std_msgs/Header header

# One entry per attribute type per person
CategoricalAttribute[] categoricalAttributes
ScalarAttribute[] scalarAttributes
CategoricalAttribute[] categorical_attributes
ScalarAttribute[] scalar_attributes
31 changes: 19 additions & 12 deletions spencer_human_attribute_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
<?xml version="1.0"?>
<package>

<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>spencer_human_attribute_msgs</name>
<version>1.0.8</version>
<description>Messages used for Human Attribute Recognition</description>

<maintainer email="[email protected]">Jonatan Gines</maintainer>
<maintainer email="[email protected]">Timm Linder</maintainer>
<author email="[email protected]">Timm Linder</author>

<license>BSD</license>

<buildtool_depend>catkin</buildtool_depend>
<build_depend>message_generation</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>std_msgs</build_depend>
<license>BSD</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<run_depend>message_runtime</run_depend>
<run_depend>roscpp</run_depend>
<run_depend>std_msgs</run_depend>
<depend>std_msgs</depend>

<build_depend>builtin_interfaces</build_depend>
<build_depend>rosidl_default_generators</build_depend>
<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>

<build_depend>roslib</build_depend><run_depend>roslib</run_depend></package>
</package>
63 changes: 24 additions & 39 deletions spencer_social_relation_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,31 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.5)
project(spencer_social_relation_msgs)

find_package(catkin REQUIRED COMPONENTS
roscpp
roslib
std_msgs
sensor_msgs
nav_msgs
geometry_msgs
message_generation
)

################################################
## Declare ROS messages, services and actions ##
################################################
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

# Generate messages in the 'msg' folder
add_message_files(
FILES
SocialRelation.msg
SocialRelations.msg
SocialActivity.msg
SocialActivities.msg
)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# Generate services in the 'srv' folder
#add_service_files(
# FILES
#)
find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)

## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
geometry_msgs
sensor_msgs
nav_msgs
std_msgs
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/SocialRelation.msg"
"msg/SocialRelations.msg"
"msg/SocialActivity.msg"
"msg/SocialActivities.msg"
DEPENDENCIES builtin_interfaces geometry_msgs std_msgs nav_msgs sensor_msgs
)

###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS roscpp std_msgs sensor_msgs nav_msgs geometry_msgs message_runtime
)
ament_export_dependencies(rosidl_default_runtime)

ament_package()
41 changes: 22 additions & 19 deletions spencer_social_relation_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
<?xml version="1.0"?>
<package>

<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>spencer_social_relation_msgs</name>
<version>1.0.8</version>
<description>Messages used for Social Activity Detection and Social Relation Analysis</description>
<description>TMessages used for Social Activity Detection and Social Relation Analysis</description>

<maintainer email="[email protected]">Jonatan Gines</maintainer>
<maintainer email="[email protected]">Timm Linder</maintainer>
<author email="[email protected]">Timm Linder</author>
<license>BSD</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<author email="[email protected]">Timm Linder</author>
<depend>geometry_msgs</depend>
<depend>std_msgs</depend>
<depend>nav_msgs</depend>
<depend>sensor_msgs</depend>

<buildtool_depend>catkin</buildtool_depend>
<build_depend>message_generation</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>nav_msgs</build_depend>
<build_depend>geometry_msgs</build_depend>

<run_depend>message_runtime</run_depend>
<run_depend>roscpp</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>sensor_msgs</run_depend>
<run_depend>nav_msgs</run_depend>
<run_depend>geometry_msgs</run_depend>
<build_depend>builtin_interfaces</build_depend>
<build_depend>rosidl_default_generators</build_depend>
<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>

<build_depend>roslib</build_depend><run_depend>roslib</run_depend></package>
</package>
77 changes: 33 additions & 44 deletions spencer_tracking_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,52 +1,41 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.5)
project(spencer_tracking_msgs)

find_package(catkin REQUIRED COMPONENTS
roscpp
roslib
std_msgs
geometry_msgs
message_generation
)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

################################################
## Declare ROS messages, services and actions ##
################################################
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# Generate messages in the 'msg' folder
add_message_files(
FILES
DetectedPerson.msg
DetectedPersons.msg
CompositeDetectedPerson.msg
CompositeDetectedPersons.msg
TrackedPerson.msg
TrackedPersons.msg
TrackedPerson2d.msg
TrackedPersons2d.msg
TrackedGroup.msg
TrackedGroups.msg
ImmDebugInfo.msg
ImmDebugInfos.msg
TrackingTimingMetrics.msg
)
find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)

# Generate services in the 'srv' folder
add_service_files(
FILES
GetPersonTrajectories.srv
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/DetectedPerson.msg"
"msg/DetectedPersons.msg"
"msg/CompositeDetectedPerson.msg"
"msg/CompositeDetectedPersons.msg"
"msg/PersonTrajectory.msg"
"msg/PersonTrajectoryEntry.msg"
"msg/TrackedPerson.msg"
"msg/TrackedPersons.msg"
"msg/TrackedPerson2d.msg"
"msg/TrackedPersons2d.msg"
"msg/TrackedGroup.msg"
"msg/TrackedGroups.msg"
"msg/ImmDebugInfo.msg"
"msg/ImmDebugInfos.msg"
"msg/TrackingTimingMetrics.msg"
"srv/GetPersonTrajectories.srv"
DEPENDENCIES builtin_interfaces geometry_msgs std_msgs
)

## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
geometry_msgs
std_msgs
)
ament_export_dependencies(rosidl_default_runtime)

###################################
## catkin specific configuration ##
###################################
catkin_package(
CATKIN_DEPENDS roscpp std_msgs geometry_msgs message_runtime
)
ament_package()
2 changes: 1 addition & 1 deletion spencer_tracking_msgs/msg/CompositeDetectedPersons.msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# This information is processed by the spencer_detected_person_association module, such that other perception components can associate their results (e.g. person age, gender)
# with a particular spencer_tracking_msgs/TrackedPerson (which contains a reference to a composite person detection ID).

Header header # Header timestamp is set to the *latest* timestamp of all fused DetectedPerson messages.
std_msgs/Header header # Header timestamp is set to the *latest* timestamp of all fused DetectedPerson messages.
# Before fusion, all detections are transformed into a common coordinate frame (usually base_footprint).
CompositeDetectedPerson[] elements # Fused (merged) detected persons
2 changes: 1 addition & 1 deletion spencer_tracking_msgs/msg/DetectedPersons.msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Message with all currently detected persons
#

Header header # Header containing timestamp etc. of this message
std_msgs/Header header # Header containing timestamp etc. of this message
DetectedPerson[] detections # All persons that are currently being detected
14 changes: 7 additions & 7 deletions spencer_tracking_msgs/msg/ImmDebugInfo.msg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Message for passing debug information of filter performance
#

uint64 track_id # unique identifier of the target, consistent over time
float64 innovation # innovation of prediction and associated observation
float64 CpXX # variance of prediction acc. to x
float64 CpYY # variance of prediction acc. to y
float64 CXX # variance of state acc. to x
float64 CYY # variance of state acc. to y
float64[] modeProbabilities# array containing mode probabilities
uint64 track_id # unique identifier of the target, consistent over time
float64 innovation # innovation of prediction and associated observation
float64 cp_xx # variance of prediction acc. to x
float64 cp_yy # variance of prediction acc. to y
float64 c_xx # variance of state acc. to x
float64 c_yy # variance of state acc. to y
float64[] mode_probabilities # array containing mode probabilities
2 changes: 1 addition & 1 deletion spencer_tracking_msgs/msg/ImmDebugInfos.msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Message with all debug infos per frame
#

Header header # Header containing timestamp etc. of this message
std_msgs/Header header # Header containing timestamp etc. of this message
ImmDebugInfo[] infos # All persons that are currently being tracked
2 changes: 1 addition & 1 deletion spencer_tracking_msgs/msg/PersonTrajectoryEntry.msg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Message defining an entry of a person trajectory.
#

time stamp # age of the track
builtin_interfaces/Time stamp # age of the track
bool is_occluded # if the track is currently not matched by a detection
uint64 detection_id # id of the corresponding detection in the current cycle (undefined if occluded)

Expand Down
11 changes: 4 additions & 7 deletions spencer_tracking_msgs/msg/TrackedGroup.msg
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Message defining a tracked group
#

uint64 group_id # unique identifier of the target, consistent over time

duration age # age of the group

geometry_msgs/PoseWithCovariance centerOfGravity # mean and covariance of the group (calculated from its person tracks)

uint64[] track_ids # IDs of the tracked persons in this group. See srl_tracking_msgs/TrackedPersons
uint64 group_id # unique identifier of the target, consistent over time
builtin_interfaces/Duration age # age of the group
geometry_msgs/PoseWithCovariance center_of_gravity # mean and covariance of the group (calculated from its person tracks)
uint64[] track_ids # IDs of the tracked persons in this group. See srl_tracking_msgs/TrackedPersons
Loading

0 comments on commit 0365463

Please sign in to comment.