-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dea7db
commit 9f8f754
Showing
10 changed files
with
404 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// Created by shivesh on 9/13/19. | ||
// | ||
|
||
#ifndef CONTINENTAL_RADAR_CONTINENTAL_RADAR_ROS_HPP | ||
#define CONTINENTAL_RADAR_CONTINENTAL_RADAR_ROS_HPP | ||
|
||
#include <ros/ros.h> | ||
#include <thread> | ||
|
||
#include "continental_radar/Object.h" | ||
#include "continental_radar/ObjectList.h" | ||
#include "continental_radar/continental_radar_can.hpp" | ||
|
||
namespace continental_radar | ||
{ | ||
class ContinentalRadarROS : public ContinentalRadarCAN { | ||
public: | ||
ContinentalRadarROS(); | ||
|
||
~ContinentalRadarROS(); | ||
|
||
void receive_data(); | ||
|
||
void run(); | ||
|
||
void send_object_0_status() override; | ||
|
||
void send_object_1_general() override; | ||
|
||
void send_object_3_extended() override; | ||
|
||
private: | ||
ros::NodeHandle nh_; | ||
|
||
ros::Publisher objects_data_pub_; | ||
|
||
ObjectList object_list; | ||
|
||
int object_id_; | ||
|
||
std::thread receive_data_thread; | ||
}; | ||
} | ||
|
||
#endif //CONTINENTAL_RADAR_CONTINENTAL_RADAR_ROS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
uint8 id | ||
|
||
geometry_msgs/Point position | ||
geometry_msgs/Vector3 relative_velocity | ||
|
||
float32 length | ||
float32 width | ||
float32 orientation_angle | ||
|
||
int8 dynamic_property | ||
int8 class_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
std_msgs/Header header | ||
|
||
continental_radar/Object[] objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.