File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Software/real_time/ROS_RoboBuggy/src/robobuggy Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11Header header
22
3- float32 Lat_m
4- float32 Long_m
3+ # easting is our x coordinate
4+ float32 easting
5+ # northing is our y coordinate
6+ float32 northing
57
68float32 Lat_deg
79float32 Long_deg
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ int GPS_Broadcaster::read_gps_message()
5555 }
5656
5757 robobuggy::GPS* gps_message = parse_tokens (tokens);
58+
59+
5860 if (gps_message != NULL )
5961 {
6062 gps_pub.publish (*gps_message);
@@ -123,8 +125,8 @@ robobuggy::GPS* GPS_Broadcaster::parse_tokens(std::string tokens[])
123125
124126 gps_message.Lat_deg = static_cast <float >(latitude_deg);
125127 gps_message.Long_deg = static_cast <float >(longitude_deg);
126- gps_message.Lat_m = static_cast <float >(utm_point.easting );
127- gps_message.Long_m = static_cast <float >(utm_point.northing );
128+ gps_message.northing = static_cast <float >(utm_point.northing );
129+ gps_message.easting = static_cast <float >(utm_point.easting );
128130
129131 return &gps_message;
130132}
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ void Localizer::Encoder_Callback(const robobuggy::Encoder::ConstPtr &msg)
3535void Localizer::GPS_Callback (const robobuggy::GPS::ConstPtr &msg)
3636{
3737 geodesy::UTMPoint p;
38- p.northing = msg->Lat_m ;
39- p.easting = msg->Long_m ;
38+ p.northing = msg->northing ;
39+ p.easting = msg->easting ;
4040 p.band = ' T' ;
4141 p.zone = 17 ;
4242
You can’t perform that action at this time.
0 commit comments