Dan,<div><br></div><div>Without being able to investigate your setup further, the only thing I can think is that the commands being sent over the serial connection are either experiencing high latency or are being sent to infrequently, so that the velocity commands sent to the microcontroller are far enough apart that you get the stuttering effect.</div>
<div><br></div><div>I tried reproducing this by setting a very high time (30s as opposed to 2s) to resend velocity commands but this had no effect.  Are you seeing statements from the p2os node of the form "new speed [0.25, 0.0] (timestamp)" and "setting vel: [0.25,0.0]".  If not what kind of debug output are you seeing on the node?</div>
<div><br></div><div>-Tucker<br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 12:31 PM, Dan Lazewatsky <span dir="ltr"><<a href="mailto:lazewatskyd@cse.wustl.edu">lazewatskyd@cse.wustl.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  

<div bgcolor="#ffffff" text="#000000">
I just tried out a few things from your pioneer_control package and I
get the same behavior I was seeing before.<br><font color="#888888">
<br>
-Dan</font><div><div></div><div class="h5"><br>
<br>
On 4/21/10 7:13 PM, Dan Lazewatsky wrote:
<blockquote type="cite">
  
Hi Tucker,<br>
I think that should be enough to get me going.<br>
  <br>
Thanks!<br>
-Dan<br>
  <br>
On 4/21/10 6:57 PM, Tucker Hermans wrote:
  <blockquote type="cite">Hi Dan,
    <div><br>
    </div>
    <div>I send the MotorState command of 4 and have no problems.</div>
    <div><br>
    </div>
    <div>I have a teleop keyboard port which I use for communicating
with
the p3dx that you can find here: <a href="http://github.com/trhermans/AffLearning/tree/master/pioneer_control/" target="_blank">github.com/trhermans/AffLearning/tree/master/pioneer_control/</a></div>
    <div><br>
    </div>
    <div>Note: the launch file is setup for a p3dx with a PTZ connected
to an onboard computer and uses the probe camera driver to get the
video stream.</div>
    <div><br>
    </div>
    <div>I have only been testing the changes to the p2os package on a
p3dx with an onboard computer, I don't think this should have any
issues, but it could. Let me know if the keyboard operation gives the
same problems you have now and I'll try and help debug it.</div>
    <div><br>
    </div>
    <div>-Tucker<br>
    <br>
    <div class="gmail_quote">On Wed, Apr 21, 2010 at 7:49 PM, Dan
Lazewatsky <span dir="ltr"><<a href="mailto:lazewatskyd@cse.wustl.edu" target="_blank">lazewatskyd@cse.wustl.edu</a>></span>
wrote:<br>
    <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Hi
all
-<br>
I know this has been discussed here a bit, but not in much detail.<br>
We have a Pioneer3dx that we'd like to get up and running again. I<br>
downloaded and compiled the p2os package which seems to be able to<br>
successfully connect and communicate with the robot using a serial to<br>
USB adapter. However, I'm having trouble getting the motors to do<br>
anything sensible. The robot's motor self-test looks like it works fine,<br>
but sending cmd_vel, all I can get is extremely slow, jerky movement<br>
forward or backwards (no turning). I enabled the motors with:<br>
      <br>
rostopic pub cmd_motor_state -1 p2os/MotorState 1 (I also tried 4<br>
instead of 1 which was mentioned in a previous discussion)<br>
      <br>
This feels like a communication problem between the motor commands p2os<br>
is sending and the robot, but I don't know what's going on. Any ideas?<br>
      <br>
Thanks,<br>
-Dan<br>
_______________________________________________<br>
ros-users mailing list<br>
      <a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
      <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
    </blockquote>
    </div>
    <br>
    </div>
    <pre><fieldset></fieldset>
_______________________________________________
ros-users mailing list
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a>
  </pre>
  </blockquote>
  <pre><fieldset></fieldset>
_______________________________________________
ros-users mailing list
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a>
  </pre>
</blockquote>
</div></div></div>

<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br></div>