Skip to content

Commit

Permalink
Fix bugs in manager, gui, pxrf and antenna offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
proboticks committed May 2, 2024
1 parent ce37ba4 commit 0878a52
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ COM -> IMU (-0.0162, -0.0953, +0.0074)
y = 114 - 18.72 => 95.28 mm
z = => 7.37 mm
IMU -> FRONT_ANTENNA (0.1746+0.0162, 0.1547+0.0953)
IMU -> FRONT_ANTENNA (0.1908,0.25)
IMU -> FRONT_ANTENNA (+0.1604, +0.2160, -0.0074)
IMU -> BACK_ANTENNA (-0.1108, -0.0347, -0.0074)
IMU -> BACK_ANTENNA (0.189-0.0162, 0.1547-0.0953)
IMU -> BACK_ANTENNA (0.1728, 0.0594)
OLD IMU -> FRONT_ANTENNA (+0.1604, +0.2160, -0.0074)
OLD IMU -> BACK_ANTENNA (-0.1108, -0.0347, -0.0074)
```

### Topics
Expand Down
4 changes: 4 additions & 0 deletions autonomy_manager/src/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def __init__(self):
)

# intialize adaptive sampling class and conversion class
self.pxrf_complete = False
self.pxrf_mean_value = None
self.adaptiveROS = None
self.gridROS = None
self.conversion = Conversion()
Expand Down Expand Up @@ -198,6 +200,7 @@ def run(self):

def run_loop_callback(self, data):
self.run_loop_flag = True
return TriggerResponse(True, "SUCCESS")

def load_ros_params(self):
# Load topic names into params
Expand Down Expand Up @@ -358,6 +361,7 @@ def publish_move_base_goal(self, lat, lon):

if not self.is_arm_in_home_pose:
rospy.logerr("Arm is not in home pose, will not publish move_base goal!")
self.update_status("ERROR")
return

#TODO: Orientation for goal
Expand Down
3 changes: 1 addition & 2 deletions pxrf/scripts/pxrf_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from autonomy_manager.srv import Complete
import os
from sensor_msgs.msg import NavSatFix
from datetime import date
import csv
import time
from tf.transformations import euler_from_quaternion
Expand Down Expand Up @@ -132,7 +131,7 @@ def data_listener(self, data: PxrfMsg):
self.scanning = False

# get ros and system time
self.system_time = str(datetime.datetime.now())
self.system_time = str(datetime.now())
self.ros_time = rospy.Time.now()

# record and process received response
Expand Down
4 changes: 2 additions & 2 deletions robo_nav/launch/gq7_odom.launch
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<arg name="filter_relative_position_ref" default="[0.0, 0.0, 0.01]" doc="Reference position. Units dictated by filter_relative_position_frame" />

<arg name="gnss1_antenna_offset_source" default="1" doc="GNSS1 antenna offset source selector" />
<arg name="gnss1_antenna_offset" default="[0.1746, -0.1547, -0.0074]" doc="GNSS1 antenna offset. Only used if gnss1_antenna_offset_source is set to 1" />
<arg name="gnss1_antenna_offset" default="[0.1908,-0.2500,-0.0074]" doc="GNSS1 antenna offset. Only used if gnss1_antenna_offset_source is set to 1" />
<arg name="gnss2_antenna_offset_source" default="1" doc="GNSS1 antenna offset source selector" />
<arg name="gnss2_antenna_offset" default="[-0.189, 0.1547, -0.0074]" doc="GNSS1 antenna offset. Only used if gnss1_antenna_offset_source is set to 1" />
<arg name="gnss2_antenna_offset" default="[-0.1728, 0.0594, -0.0074]" doc="GNSS2 antenna offset. Only used if gnss2_antenna_offset_source is set to 1" />

<arg name="filter_auto_heading_alignment_selector" default="1" doc="Filter initialization auto-heading alignment selector" />

Expand Down

0 comments on commit 0878a52

Please sign in to comment.