-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove custom msg. - Update launch files. - Split into seperate ROS nodes.
- Loading branch information
1487quantum
committed
Jun 26, 2022
1 parent
3d8ea0b
commit d7b17d6
Showing
13 changed files
with
213 additions
and
258 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
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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
|
||
#include <geometry_msgs/Point.h> | ||
#include <geometry_msgs/PoseWithCovariance.h> | ||
#include <std_msgs/Header.h> | ||
#include <std_msgs/String.h> | ||
#include <tf/tf.h> | ||
|
||
class waypointgen_utils { | ||
|
||
public: | ||
waypointgen_utils(); | ||
void update_header(std_msgs::Header &hd, const std::string &frameID); | ||
template <typename T> | ||
inline void add_timestamp(T &targetMsg, const std::string frameID, | ||
const geometry_msgs::Pose &initPose) { | ||
update_header(targetMsg.header, frameID); | ||
targetMsg.pose = initPose; // set pose | ||
}; | ||
|
||
geometry_msgs::PoseWithCovariance addPoseCov(const geometry_msgs::Point &pt, | ||
const tf::Quaternion &q_rotate); | ||
void set_pose_position(geometry_msgs::Point &from_point, | ||
const geometry_msgs::Point &to_point); | ||
|
||
std::string getCurrentTime(); | ||
|
||
void printDebugPose(const std::string &dmsg, const std::string &wp_name, | ||
const geometry_msgs::PoseWithCovariance &pw); | ||
|
||
static constexpr double PI = 3.1415926535897932385; | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<launch> | ||
<node pkg="waypointgen" type="setpoint_marker" respawn="false" name="setpoint_marker" output="screen"/> | ||
<node pkg="rviz" type="rviz" respawn="false" name="rviz"/> | ||
</launch> | ||
<arg name="show_rviz" default="true" /> | ||
|
||
<node pkg="waypointgen" type="setpoint_marker" respawn="false" name="setpoint_marker" output="screen" /> | ||
<group if="$(arg show_rviz)"> | ||
<node pkg="rviz" type="rviz" respawn="false" name="rviz" args="-d $(find waypointgen)/rviz/wp_markers.rviz"/> | ||
</group> | ||
</launch> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>waypointgen</name> | ||
<version>0.1.1</version> | ||
<version>0.1.2</version> | ||
<description>The waypointgen package</description> | ||
|
||
<maintainer email="[email protected]">1487quantum</maintainer> | ||
|
@@ -14,6 +14,7 @@ | |
<build_depend>tf</build_depend> | ||
<build_depend>visualization_msgs</build_depend> | ||
<build_depend>roslib</build_depend> | ||
<build_depend>std_msgs</build_depend> | ||
<build_depend>actionlib_msgs</build_depend> | ||
<build_depend>geometry_msgs</build_depend> | ||
<build_depend>move_base_msgs</build_depend> | ||
|
@@ -30,6 +31,7 @@ | |
<exec_depend>tf</exec_depend> | ||
<exec_depend>visualization_msgs</exec_depend> | ||
<exec_depend>message_runtime</exec_depend> | ||
<exec_depend>std_msgs</exec_depend> | ||
<exec_depend>actionlib_msgs</exec_depend> | ||
<exec_depend>geometry_msgs</exec_depend> | ||
<exec_depend>move_base_msgs</exec_depend> | ||
|
Oops, something went wrong.