Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InexactError() from time.jl #55

Open
huckl3b3rry87 opened this issue Sep 20, 2018 · 2 comments
Open

InexactError() from time.jl #55

huckl3b3rry87 opened this issue Sep 20, 2018 · 2 comments

Comments

@huckl3b3rry87
Copy link
Contributor

Hi, I am getting this error at startup

ERROR: LoadError: [ INFO] [1537486301.719604835, 0.371000000]: Lookup would require extrapolation into the past.  Requested time 0.100000000 but the earliest data is at time 0.168000000, when looking up transform from frame [velodyne_top_link] to frame [map]
InexactError()
Stacktrace:
 [1] _canonical_time(::Int64, ::Int64) at /home/mavs/.julia/v0.6/RobotOS/src/time.jl:52
 [2] RobotOS.Time(::Int64, ::Int64) at /home/mavs/.julia/v0.6/RobotOS/src/time.jl:22
 [3] convert(::Type{std_msgs.msg.Header}, ::PyCall.PyObject) at /home/mavs/.julia/v0.6/RobotOS/src/gentypes.jl:486 (repeats 2 times)
 [4] (::RobotOS.ServiceProxy{gazebo_msgs.srv.GetModelState})(::gazebo_msgs.srv.GetModelStateRequest) at /home/mavs/.julia/v0.6/RobotOS/src/services.jl:32
 [5] loop_straight_line(::RobotOS.ServiceProxy{gazebo_msgs.srv.SetModelState}, ::RobotOS.ServiceProxy{gazebo_msgs.srv.GetModelState}) at /home/mavs/MAVs/ros/src/models/gazebo/vehicle_description/move_vehicle.jl:48
 [6] main() at /home/mavs/MAVs/ros/src/models/gazebo/vehicle_description/move_vehicle.jl:205
 [7] include_from_node1(::String) at ./loading.jl:576
 [8] include(::String) at ./sysimg.jl:14
 [9] process_options(::Base.JLOptions) at ./client.jl:305
 [10] _start() at ./client.jl:371
while loading /home/mavs/MAVs/ros/src/models/gazebo/vehicle_description/move_vehicle.jl, in expression starting on line 212
[move_vehicle-8] process has died [pid 264, exit code 1, cmd /home/mavs/MAVs/ros/src/models/gazebo/vehicle_description/move_vehicle.jl __name:=move_vehicle __log:=/home/mavs/.ros/log/2df2eb38-bd2d-11e8-a1a3-fc15b4ebb208/move_vehicle-8.log].
log file: /home/mavs/.ros/log/2df2eb38-bd2d-11e8-a1a3-fc15b4ebb208/move_vehicle-8*.log

Is there any way that we can have a check for that so that if it does try to grab an earlier time it passes zero or something, just so that we can get started?

@jdlangs
Copy link
Owner

jdlangs commented Sep 21, 2018

Do you have a code sample that can reproduce the InexactError? The error looks like the standard TF extrapolation error but I have no idea why that would create a problem in creating a Time instance.

@huckl3b3rry87
Copy link
Contributor Author

@jdlangs thank you for the response. Unfortunately, I do not have a MWE yet, but this is the code
https://github.com/JuliaMPC/MAVs/blob/master/ros/src/models/gazebo/vehicle_description/move_vehicle.jl#L48

It is strange because this used to work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants