Skip to content

Commit a254ce5

Browse files
EfimiaPanagiotaki-StreetDroneEfimiaPanagiotaki-StreetDrone
andauthored
Melodic Release 1.2.0 (#27)
Co-authored-by: EfimiaPanagiotaki-StreetDrone <[email protected]>
1 parent 79cf96c commit a254ce5

21 files changed

+541
-277
lines changed

src/autoware.ai

Submodule autoware.ai updated 110 files

src/supervisor/check_message_alive/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ include_directories(
3535
${catkin_INCLUDE_DIRS}
3636
)
3737

38-
add_executable(check_message_alive src/check_message_alive.cpp)
38+
add_executable(check_message_alive src/check_message_alive_main.cpp src/check_message_alive.cpp)
3939
target_link_libraries(check_message_alive ${catkin_LIBRARIES})
4040
add_dependencies(check_message_alive ${catkin_EXPORTED_TARGETS})
4141

42-
add_executable(error_listener src/error_listener.cpp)
42+
add_executable(error_listener src/error_listener_main.cpp src/error_listener.cpp)
4343
target_link_libraries(error_listener ${catkin_LIBRARIES})
44-
add_dependencies(error_listener ${catkin_EXPORTED_TARGETS})
44+
add_dependencies(error_listener ${catkin_EXPORTED_TARGETS})

src/supervisor/check_message_alive/include/check_message_alive.h

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
#include <string.h>
3434
#include <time.h>
3535

36+
#include <ros/ros.h>
37+
#include <std_msgs/Bool.h>
38+
#include <std_msgs/Int32.h>
39+
#include <sensor_msgs/PointCloud2.h>
40+
#include <geometry_msgs/TwistStamped.h>
41+
#include <geometry_msgs/PoseStamped.h>
42+
#include <aslan_msgs/Lane.h>
43+
#include <aslan_msgs/LaneArray.h>
44+
#include <pcl_conversions/pcl_conversions.h>
45+
#include <tf2_msgs/TFMessage.h>
46+
#include <chrono>
47+
3648
class topic_data
3749
{
3850
public:
@@ -45,30 +57,34 @@ class topic_data
4557
topic_data(std::string name, bool check_message);
4658
};
4759

60+
class check_message_alive
61+
{
62+
public:
63+
void pmap_stat_alive_callback(const std_msgs::Bool::ConstPtr& msg);
64+
void filtered_points_alive_callback(const sensor_msgs::PointCloud2::ConstPtr& msg);
65+
void ndt_pose_alive_callback(const geometry_msgs::PoseStamped::ConstPtr& msg);
66+
void lane_array_alive_callback(const aslan_msgs::LaneArray::ConstPtr& msg);
67+
void twist_cmd_alive_callback(const geometry_msgs::TwistStamped::ConstPtr& msg);
68+
void twist_raw_alive_callback(const geometry_msgs::TwistStamped::ConstPtr& msg);
69+
void points_raw_alive_callback(const sensor_msgs::PointCloud2::ConstPtr& msg);
70+
void traffic_array_alive_callback(const aslan_msgs::LaneArray::ConstPtr& msg);
71+
void closest_alive_callback(const std_msgs::Int32ConstPtr& msg, VelocitySetPath vs_path);
72+
void final_waypoints_callback(const aslan_msgs::LaneConstPtr& msg);
73+
void current_pose_callback(const geometry_msgs::PoseStampedConstPtr &msg);
74+
void safety_waypoints_callback(const aslan_msgs::LaneConstPtr& msg);
75+
void tf_callback(const tf2_msgs::TFMessageConstPtr &msg);
76+
void radar_emergency_callback(const std_msgs::Int32::ConstPtr& msg);
77+
diagnostic_msgs::DiagnosticStatus get_topic_diagnostics(topic_data topic);
78+
diagnostic_msgs::DiagnosticArray generate_diagnostics();
79+
int RUN(int argc, char **argv);
4880

49-
diagnostic_msgs::DiagnosticArray aslan_diagnostics_array;
50-
diagnostic_msgs::DiagnosticStatus aslan_diagnostics_status;
51-
int seq = 0;
52-
bool tf_msg1 = true, tf_msg2 = true, tf_msg3 = true;
53-
bool emergency_flag = false;
54-
bool end_of_waypoints = false;
55-
void waypointsCallback(const aslan_msgs::LaneConstPtr& msg);
56-
57-
58-
topic_data pmap_stat ("pmap_stat", false);
59-
topic_data filtered_points ("filtered_points", false);
60-
topic_data ndt_pose ("ndt_pose", false);
61-
topic_data lane_waypoints_array ("lane_waypoints_array", false);
62-
topic_data twist_cmd ("twist_cmd", true);
63-
topic_data twist_raw ("twist_raw", false);
64-
topic_data points_raw ("points_raw", true);
65-
topic_data traffic_waypoints_array ("traffic_waypoints_array", false);
66-
topic_data closest_waypoint ("closest_waypoint", false);
67-
topic_data final_waypoints ("final_waypoints", false);
68-
topic_data current_pose ("current_pose", false);
69-
topic_data safety_waypoints ("safety_waypoints", false);
70-
topic_data transf ("tf", true);
71-
72-
81+
diagnostic_msgs::DiagnosticArray aslan_diagnostics_array;
82+
diagnostic_msgs::DiagnosticStatus aslan_diagnostics_status;
83+
int seq = 0;
84+
bool tf_msg1 = true, tf_msg2 = true, tf_msg3 = true;
85+
bool emergency_flag = false;
86+
bool end_of_waypoints = false;
87+
// void waypointsCallback(const aslan_msgs::LaneConstPtr& msg);
7388

74-
int FIXED_ERROR_THRESH = 200; // 200 ms
89+
int FIXED_ERROR_THRESH = 200; // 200 ms
90+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (C) 2020 Project ASLAN - All rights reserved
3+
*
4+
* Author: Abdelrahman Barghouth
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions are met:
8+
* * Redistributions of source code must retain the above copyright notice,
9+
* this list of conditions and the following disclaimer.
10+
* * Redistributions in binary form must reproduce the above copyright
11+
* notice, this list of conditions and the following disclaimer in the
12+
* documentation and/or other materials provided with the distribution.
13+
* * Neither the name of the copyright holder nor the names of its
14+
* contributors may be used to endorse or promote products derived from
15+
* this software without specific prior written permission.
16+
*
17+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27+
* POSSIBILITY OF SUCH DAMAGE.
28+
*
29+
*/
30+
31+
32+
#include <ros/ros.h>
33+
#include <diagnostic_msgs/DiagnosticArray.h>
34+
#include <diagnostic_msgs/DiagnosticStatus.h>
35+
36+
class error_listener
37+
{
38+
public:
39+
void diagnostics_callback(const diagnostic_msgs::DiagnosticArray::ConstPtr& msg);
40+
int RUN(int argc, char **argv);
41+
};

0 commit comments

Comments
 (0)