for the Python robot_control_class I made a copy as indicated.

When I tried Exercise 3.4 I wasn't getting results as expected. When I looked more closely at the class I noticed that the "backward" option seemed to be configured incorrectly:

if motion == "forward":
    self.cmd.linear.x = speed
elif motion == "backward":
    self.cmd.angular.z = - speed

Seems like you want to have "backward" set the linear.x and not the angular.z, like the 'forward' option does. In other words the last line should read:

self.cmd.linear.x = -speed

After I modified my local copy that way my program worked as expected.


asked 05 Jul, 23:44's gravatar image

accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 05 Jul, 23:44

question was seen: 35 times

last updated: 05 Jul, 23:44

powered by OSQA