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

Message header stamp differs between IMU and camera #388

Closed
TSCarlos opened this issue Apr 10, 2020 · 6 comments
Closed

Message header stamp differs between IMU and camera #388

TSCarlos opened this issue Apr 10, 2020 · 6 comments
Assignees
Labels
bug Something isn't working minor

Comments

@TSCarlos
Copy link

Using the urban_qual branch, and robot configuration X4_5, the camera header stamp lags way behind the IMU header stamp

@nkoenig
Copy link
Contributor

nkoenig commented Apr 10, 2020

Can you please provide log files, a reproducible example, and a group id of an instance where this problem occurred on Cloudsim?

@rsawtell
Copy link

I'm having this too in cave_qual and master branches on local dev. Nothing is required to reproduce it other than the run the simulator (don't even need to launch our solution). It appears to be the same problem that popped up before with images lagging behind everything in general.

image

Not sure if this is related, but I did notice this error in the simulator info: "[Err] [LevelManager.cc:134] Could not find a plugin tag with name ignition::gazebo. Levels and distributed simulation will not work.". I have ignition-gazebo2 installed, as well as libignition-gazebo2-plugins. Have the package dependencies changed since migrating to git?

@rsawtell
Copy link

On further consideration, it appears to be a problem with the cave_qual branch and not the master branch

@nkoenig
Copy link
Contributor

nkoenig commented Apr 22, 2020

I believe you meant to use the cave_qual_release branch. This branch has now been merged in master in pull request #405 .

@nkoenig
Copy link
Contributor

nkoenig commented Aug 17, 2020

I tested using the following:

  1. ign launch -v 4 cave_circuit.ign worldName:=cave_qual robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_1
  2. rostopic echo /X1/front/image_raw | grep -A 3 stamp
  3. rostopic echo /X1/imu/data | grep -A 3 stamp

The output from step 2 looks like:

stamp: 
    secs: 332
    nsecs: 952000000
  frame_id: "X1/base_link/camera_front"
--
  stamp: 
    secs: 333
    nsecs:         0
  frame_id: "X1/base_link/camera_front"
--
  stamp: 
    secs: 333
    nsecs:  52000000
  frame_id: "X1/base_link/camera_front"
--
  stamp: 
    secs: 333
    nsecs: 100000000
  frame_id: "X1/base_link/camera_front"
--
  stamp: 
    secs: 333
    nsecs: 152000000
  frame_id: "X1/base_link/camera_front

And the output from step 3 looks like:

  stamp: 
    secs: 333
    nsecs:  60000000
  frame_id: "X1/base_link/imu_sensor"
--
  stamp: 
    secs: 333
    nsecs:  80000000
  frame_id: "X1/base_link/imu_sensor"
--
  stamp: 
    secs: 333
    nsecs: 100000000
  frame_id: "X1/base_link/imu_sensor"
--
  stamp: 
    secs: 333
    nsecs: 120000000
  frame_id: "X1/base_link/imu_sensor"
--
  stamp: 
    secs: 333
    nsecs: 140000000
  frame_id: "X1/base_link/imu_sensor"

Can you confirm that you see something different?

@nkoenig nkoenig self-assigned this Aug 17, 2020
@nkoenig nkoenig added bug Something isn't working minor labels Aug 17, 2020
@nkoenig
Copy link
Contributor

nkoenig commented Aug 24, 2020

Closing since I believe this is fixed.

@nkoenig nkoenig closed this as completed Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

3 participants