Skip to content
Snippets Groups Projects
Commit 3a2bf4d2 authored by Tommy Persson's avatar Tommy Persson
Browse files

QR.

parent fd3ec588
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ remembered_points = None
have_points = False
parser = OptionParser()
parser.add_option ("", "--time-offset", action="store", type="float", dest="time_offset", help="Topic to take image from", default=0.0)
parser.add_option ("", "--image-topic", action="store", type="string", dest="image_topic", help="Topic to take image from", default="/dji21/camera0/image_raw_orig")
parser.add_option ("", "--image-frame", action="store", type="string", dest="image_frame", help="Topic to take image from", default="/dji0/camera0/image_frame")
parser.add_option ("", "--compressed", action="store_true", dest="compressed", help="If true image in is compressed.")
......@@ -94,7 +95,7 @@ def image_callback(data):
# print(json.dumps(jobj))
#look_up_time = rospy.Time(0)
look_up_time = data.header.stamp
look_up_time = data.header.stamp - rospy.Duration(options.time_offset)
# print("TRANS-ROT:", trans, rot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment