From 0c82222c8c1a41808a783a757e276380f11377c5 Mon Sep 17 00:00:00 2001 From: Pito Salas Date: Tue, 2 Jul 2019 16:26:25 -0400 Subject: [PATCH 1/2] adding usernotes.md with notes that are discovered as I learn how to use this. --- usernotes.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 usernotes.md diff --git a/usernotes.md b/usernotes.md new file mode 100644 index 0000000..e69de29 From fa81b94f2eb3b53139086ccfabbbfc6c31245e54 Mon Sep 17 00:00:00 2001 From: Pito Salas Date: Wed, 3 Jul 2019 15:12:30 -0400 Subject: [PATCH 2/2] updated --- usernotes.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/usernotes.md b/usernotes.md index e69de29..e9245b3 100644 --- a/usernotes.md +++ b/usernotes.md @@ -0,0 +1,34 @@ +#### Notes from practical use + +##### Background: +* These should probably be merged into the wiki or readme +* I am writing these as I discover how to use this library +* YMMV + +##### Jupyter Notebook +* Don't place the whole node in a single "cell" +* For example, place the code for the callback in its own Jupyter Notebook Cell + +##### Jupyter Lab +* So far I have not managed to get things to work with Jupyter Lab + +#### Ana- and Mini- Conda +* After a lot of experimentation (Ubuntu 16.04) I have come to the conclusion that Anaconda and ROS don't play nice together +* I wanted to avoid hacking with the default installation scripts for both +* I found that if I install conda first then ros, or the other way around, things would fail +* I am pretty sure it's because conda installs its own python and with two different pythons things get messed up. + +##### RosCore +* Roscore is not automatically started +* To make things work in Jupyter Notebook you will need to start roscore separately + +##### jr.subscribe() +* Is the jupyter-ros equivalent to rospy.Subscriber +* Sample: `jr.subscribe('/number', Int32, callback)` +* It does the same thing, but, it captures console output that the callback might produce + +##### Don't put multiple nodes in one Notebook +* Still investigating the threading model +* But for now, it just doesnt work + +