Where I can find the launch files for hector_mapping after installtion
Hello everyone
I used sudo apt-get install ros-kinetic-hector-salm
to generate a map using my rplidar
After running my rplidar successfully ( I can see the red points on the rviz from my lidar), after roslaunch hector_slam_launch tutorial.launch
, the rviz opens up, but I don't see anything on the grid squares.
I'm trying to follow this tutorial here to edit my launch file so I can see the map
However, I'm not sure how to access my launch file as the tutorial mentioned
Asked by hamzh.albar@gmail.com on 2018-07-16 13:55:47 UTC
Answers
If you want to see the files from packages installed using apt
then you can use rosbash
commands. For example,
rospack find hector_slam_launch
will show you the path to the hector_slam
package
rosls hector_slam_launch
will show you the contents of the hector_slam
directory and
roscd hector_slam_launch
will change to the hector_slam
directory. To see the contents of a file, use
rosed <package-name> <file-name>
so to see the contents of tutorial.launch
you'd use
rosed hector_slam_launch tutorial.launch
Update
Like I said in your previous question (#q297573) you don't edit the contents of another package. If you edit the contents of another package then you will lose those edits when the package is updated. If you create your own package instead, you're in control and won't lose those edits.
What you should do instead is copy the contents of tutorial.launch
, save it to your own package, and modify that new file.
Asked by jayess on 2018-07-16 14:30:47 UTC
Comments
How do I edited the launch file though ???
Asked by hamzh.albar@gmail.com on 2018-07-16 14:36:09 UTC
Ok, how do I open tutorial.launch
to copy ? that what I'm stuck on
Asked by hamzh.albar@gmail.com on 2018-07-16 14:53:30 UTC
It's listed on GitHub or navigate to it (using roscd
as I showed you in the answer above) and open it.
Asked by jayess on 2018-07-16 14:56:42 UTC
actually I could not find a file name called " tutorial launch " when I looked into my files
Asked by hamzh.albar@gmail.com on 2018-07-16 14:59:09 UTC
I've updated my question to use the hector_slam_launch
package and how to see the contents of a specific file.
Asked by jayess on 2018-07-16 15:08:06 UTC
Can you please click on the check mark to accept this as the solution to your problem? This answers your original question.
Asked by jayess on 2018-07-16 15:54:00 UTC
Comments