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

Edit read only launch file for mapping_box.launch

asked 2018-07-16 15:48:04 -0600

hamzh.albar@gmail.com gravatar image

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

edit retag flag offensive close merge delete

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.

jayess gravatar image jayess  ( 2018-07-16 15:48:52 -0600 )edit

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

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 15:52:34 -0600 )edit

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

jayess gravatar image jayess  ( 2018-07-16 16:02:30 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-07-16 15:51:33 -0600

jayess gravatar image

updated 2018-07-16 16:52:20 -0600

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.

edit flag offensive delete link more

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 ?

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 15:56:30 -0600 )edit
1

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...

jayess gravatar image jayess  ( 2018-07-16 15:59:32 -0600 )edit

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.

jayess gravatar image jayess  ( 2018-07-16 15:59:55 -0600 )edit

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

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 16:45:55 -0600 )edit

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.

jayess gravatar image jayess  ( 2018-07-16 16:50:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-16 15:48:04 -0600

Seen: 859 times

Last updated: Jul 16 '18