ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Where I can find the launch files for hector_mapping after installtion

asked 2018-07-16 13:55:47 -0500

hamzh.albar@gmail.com gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-16 14:30:47 -0500

jayess gravatar image

updated 2018-07-16 15:07:20 -0500

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.

edit flag offensive delete link more

Comments

How do I edited the launch file though ???

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 14:36:09 -0500 )edit

Ok, how do I open tutorial.launch to copy ? that what I'm stuck on

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 14:53:30 -0500 )edit

It's listed on GitHub or navigate to it (using roscd as I showed you in the answer above) and open it.

jayess gravatar image jayess  ( 2018-07-16 14:56:42 -0500 )edit

actually I could not find a file name called " tutorial launch " when I looked into my files

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 14:59:09 -0500 )edit

I've updated my question to use the hector_slam_launch package and how to see the contents of a specific file.

jayess gravatar image jayess  ( 2018-07-16 15:08:06 -0500 )edit

Can you please click on the check mark to accept this as the solution to your problem? This answers your original question.

jayess gravatar image jayess  ( 2018-07-16 15:54:00 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-16 13:55:47 -0500

Seen: 367 times

Last updated: Jul 16 '18