Robotics StackExchange | Archived questions

Edit read only launch file for mapping_box.launch

Hello

I'm trying run hector mapping with 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 followed the tutorial here which says I should make an edit to launch file

Here is the part I need to edit in my mpping_box.launch

 <node pkg="tf" type="static_transform_publisher" name="map_nav_broadcaster" args="0 0 0 0 0 0 map nav 100"/>

But I cannot make any changes since it's a read only file. If I copy it , I cannot save as a new file in the same folder

Asked by hamzh.albar@gmail.com on 2018-07-16 15:48:04 UTC

Comments

Please don't delete questions when you can just update them instead. This is very nearly the exact same question that you deleted except now the work that we had is now gone.

Asked by jayess on 2018-07-16 15:48:52 UTC

I think I made a mistake trying to delete my answer, now it's back please delete the comment

Asked by hamzh.albar@gmail.com on 2018-07-16 15:52:34 UTC

Comments are not deletable after someone has made a comment after it.

Asked by jayess on 2018-07-16 16:02:30 UTC

Answers

Copy the contents of tutorial.launch into your own launch file calling it whatever you want and then save it in a package that you created.

You should not be trying to edit the contents of other packages. That error is arising because you're trying to edit the contents of an installed package.

Asked by jayess on 2018-07-16 15:51:33 UTC

Comments

Ok that's clear Here is the questios 1- How I create a package ?? 2- If I save this to the new package, how would roslaunch hector_slam_launch tutorial.launch would still work ?

Asked by hamzh.albar@gmail.com on 2018-07-16 15:56:30 UTC

These are entirely new questions. ROS Answers works by keeping questions focused on one question vs. many questions in one. But, you should really go through the tutorials on the wiki as these are answered there. If something about those tutorials isn't clear...

Asked by jayess on 2018-07-16 15:59:32 UTC

then please go ahead and ask for clarification. Here's a tutorial on creating a package. As always, please click on the check mark next to an answer if it answers your question to let other users know that it is the solution.

Asked by jayess on 2018-07-16 15:59:55 UTC

Sorry man, but I think you answers are not helpful Thank you for your time though

Asked by hamzh.albar@gmail.com on 2018-07-16 16:45:55 UTC

Explaining how an answer isn't helpful would be nice because they do answer what your question is asking. So, if there's some kind of disconnect between what's being given in an answer and what you're asking then that could clarify it.

Asked by jayess on 2018-07-16 16:50:31 UTC