Hi Jack-<br><br>You can look in the pr2_teleop package to see the implementation of sending velocity messages to the base, which uses Twist messages. <br><br>For modularity, your driving node should accept something generic, like a Twist message, which would be used to prescribe a velocity and angular velocity for the base. The drive node should parse this and issue driving commands to your diff drive. Your control node should determine desired base velocities and publish them as a Twist message. The advantage of using such an interface is that then any other node, such as a teleop node, can simply publish Twist messages to the drive node.<br>
<br>I believe the base controller on the pr2 has some time interval over which each Twist message applies its velocities before it times out; you have to send continuous Twist messages to keep the robot moving, which is a good safety measure. Someone else can probably address that better than me though.<br>
<br>Hope this helps,<br>Adam<br><br><br>Adam Leeper<br>Stanford University<br><a href="mailto:aleeper@stanford.edu">aleeper@stanford.edu</a><br>719.358.3804<br>
<br><br><div class="gmail_quote">On Mon, Nov 15, 2010 at 5:11 PM, Jack Pien <span dir="ltr"><<a href="mailto:jack@jackpien.com">jack@jackpien.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am looking for the "best practice" way to simply have a ROS "control"<br>
node tell another ROS "drive" node to send RS232 commands to have my<br>
diff-drive robot drive forward, left, right, backwards via continous<br>
servos.<br>
<br>
Would you suggest have the "control" node communicate simple drive<br>
commands to the "drive" node as topics, services, or should I take a<br>
closer look at how to use the actionlib?<br>
<br>
IE: when you use the joystick to command the PR2 to simply move forward<br>
(no path planning or localization), how is this done.<br>
<br>
Thanks<br>
Jack<br>
---<br>
<a href="http://www.facebook.com/pages/Daido-Robotics/152889668088971" target="_blank">http://www.facebook.com/pages/Daido-Robotics/152889668088971</a> - "Like" to<br>
follow or contribute to Daido Robotics efforts.<br>
<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>
</blockquote></div><br>