Project-MANAS / slam_gmapping

Slam Gmapping for ROS2
121 stars 37 forks source link

ROS2 eloquent #4

Open Repp-cattt opened 3 years ago

Repp-cattt commented 3 years ago

Can I use it in the eloquent version of ros2? Or is there any other way for me to successfully build a map in ROS2?

shiveshkhaitan commented 3 years ago

Yes. Please check the eloquent-devel branch.

Repp-cattt commented 3 years ago

But when I use git clone to add eloquent-devel branch to download failed, in the source code did not find the version of eloquent, when I modified the source code compilation passed, but can not start the launch.py file normally, the error prompt that did not find the slam_gmapping package, this is why?

------------------ 原始邮件 ------------------ 发件人: "Project-MANAS/slam_gmapping" @.>; 发送时间: 2021年3月15日(星期一) 下午2:28 @.>; @.**@.>; 主题: Re: [Project-MANAS/slam_gmapping] ROS2 eloquent (#4)

Yes. Please check the eloquent-devel branch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shiveshkhaitan commented 3 years ago

I just added the eloquent-devel branch. Please try cloning the repo again.

Repp-cattt commented 3 years ago

My download order is https://github.com/Project-MANAS/slam_gmapping My download order is git clone https://github.com/Project-MANAS/slam_gmapping --branch ros-eloquent-devel,I have also tried another method, that is git clone https://github.com/Project-MANAS/slam_gmapping/eloquent-devel  ,They all failed.

------------------ 原始邮件 ------------------ 发件人: "Project-MANAS/slam_gmapping" @.>; 发送时间: 2021年3月15日(星期一) 下午2:33 @.>; @.**@.>; 主题: Re: [Project-MANAS/slam_gmapping] ROS2 eloquent (#4)

I just added the eloquent-devel branch. Please try cloning the repo again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shiveshkhaitan commented 3 years ago

This command should work: git clone https://github.com/Project-MANAS/slam_gmapping. Please try again.

Repp-cattt commented 3 years ago

But your instruction did not specify a branch. I did use this instruction to download. When I finished compiling and wanted to run it, the system reported an error and did not find the slam_gmapping package.  In addition, I would like to ask a question, does this have anything to do with my inability to compile openslam_gmapping?

------------------ 原始邮件 ------------------ 发件人: "Project-MANAS/slam_gmapping" @.>; 发送时间: 2021年3月15日(星期一) 下午2:43 @.>; @.**@.>; 主题: Re: [Project-MANAS/slam_gmapping] ROS2 eloquent (#4)

This command should work: git clone https://github.com/Project-MANAS/slam_gmapping. Please try again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shiveshkhaitan commented 3 years ago

Yes I did not specify a branch because I have made eloquent-devel the default branch. You are probably getting error because that branch did not exist when you cloned the repo. That is why I am suggesting you to clone the repo once again.

Yes slam_gmapping requires openslam_gmapping without which it would not build.

Please remember to source your local workspace source install/setup.zsh after building since ros2 launch does not automatically detect newly built packages.

Repp-cattt commented 3 years ago

I suddenly found that I could not use this command:  Git clone https://github.com/Project-MANAS/slam_gmapping.  To learn another way in Google, now use instructions:  Git clone git://github.com/Project-MANAS/slam_gmapping.  To download, does this have any effect?

------------------ 原始邮件 ------------------ 发件人: "Project-MANAS/slam_gmapping" @.>; 发送时间: 2021年3月15日(星期一) 下午2:43 @.>; @.**@.>; 主题: Re: [Project-MANAS/slam_gmapping] ROS2 eloquent (#4)

This command should work: git clone https://github.com/Project-MANAS/slam_gmapping. Please try again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

shiveshkhaitan commented 3 years ago

That is ok. Should work as well

Repp-cattt commented 3 years ago

Thank you for your reply. I'll try again!  I wish you a happy life and smooth work ~ good night

------------------ 原始邮件 ------------------ 发件人: "Project-MANAS/slam_gmapping" @.>; 发送时间: 2021年3月15日(星期一) 下午3:11 @.>; @.**@.>; 主题: Re: [Project-MANAS/slam_gmapping] ROS2 eloquent (#4)

That is ok. Should work as well

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Repp-cattt commented 3 years ago

I'm sorry to bother you again, but after I ran the command "ros2 launch slam_gmapping slam_gmapping.launch.py", the expected map did not appear. Do I need to configure another radar topic / scan and odometer / odom topic?

shiveshkhaitan commented 3 years ago

Yes. As already mentioned in the README.md, it would require laser scans on topic /scan and the transforms (tf) between odom -> base_link -> base_scan_link.

Repp-cattt commented 3 years ago

I have changed the corresponding topic and transforms (tf), but when I run the "slam_gmapping.launch.py" file, I still can't see the map in rviz. Is it because I lack the robot_pose_ekf feature pack?  Later, I tried to use robot_pose_ekf in ros1 with gmapping through ros1bridge, but I couldn't get the expected results.  I really can't figure out what went wrong.  I'm so sad.(:」∠)

------------------ 原始邮件 ------------------ 发件人: "Project-MANAS/slam_gmapping" @.>; 发送时间: 2021年3月17日(星期三) 下午5:54 @.>; @.**@.>; 主题: Re: [Project-MANAS/slam_gmapping] ROS2 eloquent (#4)

Yes. As already mentioned in the README.md, it would require laser scans on topic /scan and the transforms (tf) between odom -> base_link -> base_scan_link.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.