Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add a tutorial for turning a ROS project into a .snap. #159
Conversation
elopio
reviewed
Dec 7, 2015
| +## Package your current ROS project as a .snap | ||
| + | ||
| +Let's assume you already have a ROS project. It can be as simple or as | ||
| +complicated as you like, but for this example, our project will be made up of: |
elopio
Dec 7, 2015
Member
would it be good to mention the project in the examples dir as a reference?
kyrofa
Dec 8, 2015
Member
I actually plan on replacing that example with a more realistic one when I have a better solution for roscore.
elopio
reviewed
Dec 7, 2015
| +```yaml | ||
| +name: ros-talker-and-listener | ||
| +version: 1.0 | ||
| +vendor: example <example@example.com> |
elopio
reviewed
Dec 7, 2015
| +vendor: example <example@example.com> | ||
| +summary: ROS Example | ||
| +description: Contains talker/listener ROS packages and a .launch file. | ||
| +icon: icon.svg |
elopio
reviewed
Dec 7, 2015
| +`rosrun` or `roslaunch`. Instead, you have control over how your .snap is used, | ||
| +and here we specify that we only want a single binary, called "launch_project", | ||
| +which results in the `roslaunch` call you see. If this seems confusing now, it | ||
| +might make more sense when we actually use it. |
elopio
Dec 7, 2015
Member
nitpicking here, I think you should mention that we'll give it a try later in the document.
"it WILL make more sense later in this document when we actually use it."
elopio
reviewed
Dec 7, 2015
| + | ||
| + $ ros-talker-and-listener.launch_project | ||
| + | ||
| +And you should see the talker and listener communicating like before. |
dholbach
reviewed
Dec 8, 2015
| + ... | ||
| + | ||
| +### Put it all in a .snap | ||
| + |
dholbach
Dec 8, 2015
Contributor
Maybe add half a sentence about what snapcraft.yaml is, what snapcraft aims to do - just so people who get directed to this specific article have a little bit of context.
dholbach
reviewed
Dec 8, 2015
| + | ||
| + $ sudo snappy install ros-talker-and-listener_1.0_amd64.snap \ | ||
| + --allow-unauthenticated | ||
| + |
kyrofa
Dec 8, 2015
Member
Probably. I've updated the document to use snappy-remote. Does that seem simpler?
|
I think the last comment by @dholbach means he's happy, so let's merge. |
kyrofa commentedDec 7, 2015
No description provided.