Ask Your Question
0

How do I create the script file within beginner_tutorials package?

asked 2020-01-05 07:09:36 -0500

kimbob gravatar image

In beginner's tutorial-writing a simple service and client(http://wiki.ros.org/rospy_tuto..., At 1.1, the tutorial instructs that I should create the scripts/add_two_ints_server.py file. How can I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-01-05 07:29:16 -0500

gvdhoorn gravatar image

A "script file" is not special. It's essentially just a text file.

So any text editor could be used to create it. As long as it can save files as plain text.

Alternatively, if you'd like to separate the creation of the file from editing it, you could use touch /path/to/your/new/file to create it, and then use a text editor to edit its contents.

edit flag offensive delete link more

Comments

PS: If you haven't already, I would recommend you get some experience with basic Linux command line usage first. Forget about ROS for a second, learn a bit about the command line, then start doing the tutorials.

It will save you time searching and asking questions here on ROS Answers (and then waiting for someone to answer them) and will let you focus on more interesting things.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-05 07:30:20 -0500 )edit

Thank you!

kimbob gravatar image kimbob  ( 2020-01-05 19:36:45 -0500 )edit

Could you please mark the question as answered by ticking the checkmark (✓) to the left of the answer if you feel it has been answered? Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-06 01:52:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-01-05 07:09:36 -0500

Seen: 69 times

Last updated: Jan 05