forked from ros-planning/navigation
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for absolute position inputs (GPS/LPS systems)
- Loading branch information
Showing
6 changed files
with
205 additions
and
45 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 |
---|---|---|
@@ -1,15 +1,53 @@ | ||
load odom_file.txt; | ||
load /tmp/odom_file.txt; | ||
%load vo_file.txt; | ||
load corr_file.txt; | ||
load /tmp/corr_file.txt; | ||
load /tmp/gps_file.txt; | ||
load /tmp/imu_file.txt; | ||
|
||
|
||
figure; hold on; | ||
figure; | ||
hold on; | ||
axis equal; | ||
plot(odom_file(:,1), odom_file(:,2),'b'); | ||
%plot(vo_file(:,1),vo_file(:,2),'g'); | ||
plot(corr_file(:,1), corr_file(:,2),'r'); | ||
plot(odom_file(:,2), odom_file(:,3),'b'); | ||
%plot(vo_file(:,2),vo_file(:,3),'g'); | ||
plot(corr_file(:,2), corr_file(:,3),'r'); | ||
plot(gps_file(:,2), gps_file(:,3),'k'); | ||
legend('Wheel Odometry', 'Filter output', 'GPS Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output', 'GPS Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output'); | ||
hold off; | ||
|
||
error_odom = sqrt( (odom_file(1,1)-odom_file(end,1))^2 + (odom_file(1,2)-odom_file(end,2))^2 ) | ||
%error_vo = sqrt( (vo_file(1,1)-vo_file(end,1))^2 + (vo_file(1,2)-vo_file(end,2))^2 ) | ||
error_corr = sqrt( (corr_file(1,1)-corr_file(end,1))^2 + (corr_file(1,2)-corr_file(end,2))^2 ) | ||
figure; | ||
subplot(3,1,1) | ||
hold on; | ||
plot(odom_file(:,1),odom_file(:,2),'b'); | ||
%plot(vo_file(:,1),vo_file(:,2),'g'); | ||
plot(corr_file(:,1),corr_file(:,2),'r'); | ||
plot(gps_file(:,1), gps_file(:,2), 'k'); | ||
legend('Wheel Odometry', 'Filter output', 'GPS Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output', 'GPS Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output'); | ||
subplot(3,1,2) | ||
hold on; | ||
plot(odom_file(:,1),odom_file(:,3),'b'); | ||
%plot(vo_file(:,1),vo_file(:,3),'g'); | ||
plot(corr_file(:,1),corr_file(:,3),'r'); | ||
plot(gps_file(:,1), gps_file(:,3), 'k'); | ||
legend('Wheel Odometry', 'Filter output', 'GPS Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output', 'GPS Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output'); | ||
|
||
subplot(3,1,3) | ||
hold on; | ||
plot(odom_file(:,1),odom_file(:,4),'b'); | ||
%plot(vo_file(:,1),vo_file(:,7),'g'); | ||
plot(corr_file(:,1),corr_file(:,7),'r'); | ||
plot(imu_file(:,1), imu_file(:,2), 'k'); | ||
legend('Wheel Odometry', 'Filter output', 'IMU Measurements'); | ||
%legend('Wheel Odometry','Visual Odometry', 'Filter output', 'IMU Measurements'); | ||
|
||
|
||
|
||
error_odom = sqrt( (odom_file(1,2)-odom_file(end,2))^2 + (odom_file(1,3)-odom_file(end,3))^2 ) | ||
%error_vo = sqrt( (vo_file(1,2)-vo_file(end,2))^2 + (vo_file(1,3)-vo_file(end,3))^2 ) | ||
error_corr = sqrt( (corr_file(1,2)-corr_file(end,2))^2 + (corr_file(1,3)-corr_file(end,3))^2 ) | ||
error_gps = sqrt( (gps_file(1,2)-gps_file(end,2))^2 + (gps_file(1,3)-gps_file(end,3))^2 ) |
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,15 +1,17 @@ | ||
<launch> | ||
|
||
<node pkg="robot_pose_ekf" type="robot_pose_ekf" name="robot_pose_ekf"> | ||
<param name="output_frame" value="odom_combined"/> | ||
<node pkg="robot_pose_ekf" type="robot_pose_ekf" name="robot_pose_ekf" output="screen"> | ||
<param name="output_frame" value="odom"/> | ||
<param name="freq" value="30.0"/> | ||
<param name="debug" value="true"/> | ||
<param name="sensor_timeout" value="1.0"/> | ||
<param name="odom_used" value="true"/> | ||
<param name="imu_used" value="true"/> | ||
<param name="vo_used" value="true"/> | ||
<param name="vo_used" value="false"/> | ||
<param name="gps_used" value="true"/> | ||
|
||
<remap from="odom" to="pr2_base_odometry/odom" /> | ||
</node> | ||
|
||
|
||
</launch> | ||
|
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.