Open philzhu opened 6 years ago
pinging @LuisSC
Will try to reproduce it myself, but first I need to find and Arduino and motors. :smiley:
I though you used it before, but it's cheaper![image: Inline image 1] see link as following: 1: L298N Motor Driver controller board: https://www.amazon.com/dp/B014KMHSW6/ref=asc_df_B014KMHSW65281753/?tag=hyprod-20&creative=395033&creativeASIN=B014KMHSW6&linkCode=df0&hvadid=167139094796&hvpos=1o1&hvnetw=g&hvrand=5743600842874142793&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9032048&hvtargid=pla-306436938191
2: Arduin Uno board: https://www.amazon.com/dp/B00D9NEJ7U/ref=sspa_dk_detail_4?psc=1
Thanks!
On Sat, Nov 25, 2017 at 6:23 PM, Enrique Fernández Perdomo < notifications@github.com> wrote:
pinging @LuisSC https://github.com/luissc
Will try to reproduce it myself, but first I need to find and Arduino and motors. 😃
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rosbook/effective_robotics_programming_with_ros/issues/7#issuecomment-346979376, or mute the thread https://github.com/notifications/unsubscribe-auth/AS7rYXNXs9plupdtDKsar_oYh4wxa8_Iks5s6MuxgaJpZM4QqVIQ .
the problem for me : started roslaunch server http://mypc:54955/
PARAMETERS
NODES / c8_teleop_joy (chapter8_tutorials/c8_teleop_joy) joy_node (joy/joy_node)
ROS_MASTER_URI=http://192.168.1.106:11311/
ERROR: cannot launch node of type [chapter8_tutorials/c8_teleop_joy]: can't locate node [c8_teleop_joy] in package [chapter8_tutorials]
The launch file doesn't match the book content in page 301. The section is for c8_robot_with_motors_w_twist.ino example. The book mentioned:
"Now, you can upload the code to the Arduino board. In order to make easier to run all the nodes, we are going to create a launch file that manages the joystick, the robot model in the RViz visualizer, and the Arduino node. You can launch the example with the following command in terminals: $ roslaunch chapter8_tutorials chapter8_tutorials robot_model_with_motors.launch $ rosrun rosserial_python serial_node.py /dev/ttyACM0 Now, you can control the robot with the joystick; also you can see in the RViz visualizer the robot model moving. If you are testing the code on an embedded ARM computer without display, you can comment the rviz node in the launch file."
The book has some error for the launch file name in this section. But the section is to demo how to control motors in Arduino board, and you gave the c8_robot_with_motors_w_twist.ino example already, but I can't find any launch file which is used to control the motors in Arduino board. Main issue is how to control cmd_vel of mortors in Arduin board by using the Joystick, This part is missing in the section. But if you have right launch file about it, then will be easy for us. Right now I try to run different rostopic command, but still get failure.