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

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

1

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
1

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

Question Tools

Stats

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

Seen: 857 times

Last updated: Jan 05 '20