2727#include < tf2_ros/transform_broadcaster.h>
2828#include < tf2_geometry_msgs/tf2_geometry_msgs.h>
2929
30- namespace interactive_tools
30+ namespace me5413_project
3131{
3232
3333class GoalPublisherNode
@@ -81,10 +81,10 @@ GoalPublisherNode::GoalPublisherNode() : tf2_listener_(tf2_buffer_)
8181 this ->sub_goal_name_ = nh_.subscribe (" /rviz_panel/goal_name" , 1 , &GoalPublisherNode::goalNameCallback, this );
8282 this ->sub_goal_pose_ = nh_.subscribe (" /move_base_simple/goal" , 1 , &GoalPublisherNode::goalPoseCallback, this );
8383 this ->pub_goal_ = nh_.advertise <geometry_msgs::PoseStamped>(" /move_base_simple/goal" , 1 );
84- this ->pub_absolute_position_error_ = nh_.advertise <std_msgs::Float32>(" /interactive_tools /absolute/position_error" , 1 );
85- this ->pub_absolute_heading_error_ = nh_.advertise <std_msgs::Float32>(" /interactive_tools /absolute/heading_error" , 1 );
86- this ->pub_relative_position_error_ = nh_.advertise <std_msgs::Float32>(" /interactive_tools /relative/position_error" , 1 );
87- this ->pub_relative_heading_error_ = nh_.advertise <std_msgs::Float32>(" /interactive_tools /relative/heading_error" , 1 );
84+ this ->pub_absolute_position_error_ = nh_.advertise <std_msgs::Float32>(" /me5413_project /absolute/position_error" , 1 );
85+ this ->pub_absolute_heading_error_ = nh_.advertise <std_msgs::Float32>(" /me5413_project /absolute/heading_error" , 1 );
86+ this ->pub_relative_position_error_ = nh_.advertise <std_msgs::Float32>(" /me5413_project /relative/position_error" , 1 );
87+ this ->pub_relative_heading_error_ = nh_.advertise <std_msgs::Float32>(" /me5413_project /relative/heading_error" , 1 );
8888
8989 // Initialization
9090 this ->robot_frame_ = " base_link" ;
@@ -245,7 +245,7 @@ std::pair<double, double> GoalPublisherNode::calculatePoseError(const geometry_m
245245int main (int argc, char ** argv)
246246{
247247 ros::init (argc, argv, " goal_publisher_node" );
248- interactive_tools ::GoalPublisherNode goal_publisher_node;
248+ me5413_project ::GoalPublisherNode goal_publisher_node;
249249 ros::spin (); // spin the ros node.
250250 return 0 ;
251251}
0 commit comments