Comments (8)
I think that the problem is this first line in that file:
# BEGIN ALL
Can you try removing that line and report back on whether it works? As an alternative, you should be able to run the program with that line intact if you explicitly invoke Python, e.g.:
python red_light_green_light.py
That line is part of the special mark-up used to include the code chunk-by-chunk in the book. Wherever it appears as the first line in a file, we should move it to come after the shebang line that declares the interpreter. For mark-up purposes, we could add a duplicate shebang line after, e.g.:
#!/usr/bin/env python
# BEGIN ALL
#!/usr/bin/env python
It looks a little odd, but should work for both use cases (running the code or including it in the book).
from rosbook.
Thanks for the reply!
I tried removing the
# BEGIN ALL
and re-ran. I did not encounter an error, but did not see any movement out of the turtlebot.
Same for solutions 2 and 3. As a side note, I am able to teleop the turtlebot.
from rosbook.
Agreed. This was a very unfortunate typo.
On Thu, Oct 6, 2016 at 9:05 PM, mjr419 [email protected] wrote:
There is a typo in the book this code comes from. Find the > and switch it
to <.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#11 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFBR2nRibH1GIySj4TcZaVgN6mW_8Y_jks5qxcT2gaJpZM4Heh9w
.
from rosbook.
Also if I run roswtf I get:
Static checks summary:
Found 1 error(s).
ERROR Not all paths in PYTHONPATH [/home/william/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages] point to a directory:
- /home/william/catkin_ws/devel/lib/python2.7/dist-packages
from rosbook.
For the turtlebot to move , it has to be given the following cmd :
rosrun wanderbot red_light_green_light.py cmd_vel:=cmd_vel_mux/input/teleop
from rosbook.
Are you reporting a correction or are you having a problem with the example?
from rosbook.
Reporting a correction to wgh210
**commented on Mar 15
Thanks for the reply!
I tried removing the
BEGIN ALL
and re-ran. I did not encounter an error, but did not see any movement out of the turtlebot.
Same for solutions 2 and 3. As a side note, I am able to teleop the turtlebot.**
from rosbook.
Corrected in updated text.
from rosbook.
Related Issues (20)
- [Text improvement] Chapter 4: Move description of using rosservice HOT 1
- Suggestions to improve explanations and text HOT 1
- Corrections to text and code samples HOT 1
- NASA R2 repositories have moved HOT 7
- Possibly incorrect wheel arrangement on Tortoisebot HOT 1
- slam_gmapping parameter prefix error
- rosparam set the wrong name
- chapter 12 codes freezing HOT 1
- Compatibility with Tiago HOT 1
- aisle.world file need correcting
- Can't install ros-indigo-fetch*? HOT 1
- General "Custom Message" Issues HOT 1
- Can't run basics topic publisher.
- Please help me understand the origin tag in URDF HOT 2
- Chapter 21: src/code/cpp example code has errors HOT 1
- No motion plan found HOT 2
- Unable to run the python file red_light_green_light.py HOT 3
- key_publisher.py does not work HOT 5
- Error in Chapter 8 Page 126 under rviz heading line 6
- is it possible to simulate Nasa's R2 on ROS Noetic?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosbook.