how to configure to use imu and odometry in cartographer

1,993 views
Skip to first unread message

Jia Zheng

unread,
Oct 22, 2016, 11:24:04 PM10/22/16
to google-cartographer
I have run the google-cartographer sucessfully. But I only use the hokuyo laser. 
when I try to configure to use imu and odometry, I got an error in the following picture.




















I attach the files.

demo_revo_lds.launch  is the launch which run the cartographer.
revo_lds.lua is the configure file.
demo_2d.rviz  is the rviz which run the rviz.
OdometrySource.py and Car.cpp are the files which publish the topic of imu and odometry data. 

Please have a look at the files for me, and Please tell me the faults in the files.

I run the files in the following order.

roscore

rosrun [package]  OdometrySource.py

rosrun [package]  Car

roslaunch  cartographer_ros demo_revo_lds.launch
////////////////////////////////////////////////////////////////////////////

Thank you very much. 
demo_revo_lds.launch
revo_lds.lua
demo_2d.rviz
OdometrySource.py
Car.cpp

Damon Kohler

unread,
Oct 24, 2016, 4:32:04 AM10/24/16
to Jia Zheng, google-cartographer
There seem to be quite some issues with your setup. Here's the first few I came across:

- You enable simtime in your launch file. You also launch the Hokuyo driver. That doesn't make sense since simtime should only be enabled when reading from a bag.
- Your Odometry node is actually publishing IMU data, not odometry. You configuration disables the IMU and enables odometry.

The issues seem to have little to do with Cartographer and may be better addressed by asking your questions on the ROS answers forum: http://answers.ros.org/

I suggest trying to simplify your configuration and add just IMU or just odometry. Once that's working, try extending it to include the other source of data. You should also spend some time investigating the debugging tools available for use in ROS (e.g. rostopic, roswtf, etc.).

Hope that helps!
Damon

--
You received this message because you are subscribed to the Google Groups "google-cartographer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartogra...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cartographer/ca204ec0-c324-49a9-9731-79e150bb4ef6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Google Germany GmbH | Erika-Mann-Strasse | 80636 Muenchen | Germany

AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

Jia Zheng

unread,
Oct 24, 2016, 9:29:50 PM10/24/16
to google-cartographer, happiness...@gmail.com

Hello Damon Kohler,
    Thank you for your reply.
I look through the cartographer_turtlebot package.
I modified the files in the cartographer_turtlebot and adapt my robot.
Car.cpp  is the file which publish the odometry data.
ImuNodeSource.py is the file which publish the imu data.
demo_lidar_2d.launch,turtlebot_urg_lidar_2d.lua,demo_turtlebot.rviz is the files in the cartographer_turtlebot and I modified them.

I run the cartographer in the following command.

roscore

rosrun hokuyo_node hokuyo_node

rosrun [package] car

roslaunch cartographer_turtlebot demo_lidar_2d.launch

After I run thess command, I got the following picture in the rviz.
Could you help me please? Look through the files I attached and tell me where is wrong. How should I modified them?



在 2016年10月24日星期一 UTC+8下午4:32:04,Damon Kohler写道:
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartographer+unsub...@googlegroups.com.
Car.cpp
demo_lidar_2d.launch
demo_turtlebot.rviz
ImuNodeSource.py
turtlebot_urg_lidar_2d.lua

Holger Rapp

unread,
Oct 25, 2016, 5:31:17 AM10/25/16
to Jia Zheng, google-cartographer
​Jia,

it sounds like your problem has nothing to do with Cartographer so far. You seem to have your frame names wrong. It is really hard to tell you what is actually wrong in your setup with the data you provided so far. I suggest that you put a fork of the example repository you started from on github, including some sample data and a launch file that plays it - so that there is understandable what you modified. 

I still think that your issues is not related to Cartographer - and you should probably ask at http://answers.ros.org/, but they will require a standalone repository as reproduction case as well.

Cheers,
Holger



To unsubscribe from this group and stop receiving emails from it, send an email to google-cartographer+unsubscribe...@googlegroups.com.
--
Google Germany GmbH | Erika-Mann-Strasse | 80636 Muenchen | Germany

AG Hamburg, HRB 86891 | Sitz der Gesellschaft: Hamburg | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

--
You received this message because you are subscribed to the Google Groups "google-cartographer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cartographer+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Google Germany GmbH
Erika-Mann-Straße 33
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Reply all
Reply to author
Forward
0 new messages