Giter Site home page Giter Site logo

Comments (8)

gerkey avatar gerkey commented on July 20, 2024 2

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.

wgh210 avatar wgh210 commented on July 20, 2024 1

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.

codebot avatar codebot commented on July 20, 2024 1

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.

wgh210 avatar wgh210 commented on July 20, 2024

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.

abeldavid avatar abeldavid commented on July 20, 2024

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.

gbiggs avatar gbiggs commented on July 20, 2024

Are you reporting a correction or are you having a problem with the example?

from rosbook.

abeldavid avatar abeldavid commented on July 20, 2024

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.

codebot avatar codebot commented on July 20, 2024

Corrected in updated text.

from rosbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.