Open fvega99 opened 6 years ago
What kind of demo program do you mean? The basic OP2 demo program that is shipped with the robot?
Yes that demo program .i need to add a subscriber in order to control it with a joystick .
For controlling the OP2 with a joystick you can do it similar to the XBOX 360 controller with a different key mapping, see robotis_op_teleop_xbox360_controller. For performing the demo motions, you can use the action interface, an example is the kick motion in the keyboard teleop.
thanks for the help kevin. Is there a way to go directly to a specific demo program. like when the demo program is run, it directly goes to soccer mode and starts playing it ?
On Thu, Jul 26, 2018 at 4:06 PM, Kevin Daun notifications@github.com wrote:
For controlling the OP2 with a joystick you can do it similar to the XBOX 360 controller with a different key mapping, see robotis_op_teleop_xbox360_controller https://github.com/ROBOTIS-OP/robotis_op_teleop/blob/master/src/robotis_op_teleop_xbox360_controller.cpp . For performing the demo motions, you can use the action interface https://github.com/ROBOTIS-OP/robotis_op_ros_control/blob/master/include/robotis_op_ros_control/robotis_op_ros_controller.h#L42, an example is the kick motion in the keyboard teleop https://github.com/ROBOTIS-OP/robotis_op_teleop/blob/master/src/robotis_op_teleop_keyboard.cpp#L316 .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ROBOTIS-OP/robotis_op_framework/issues/4#issuecomment-408261717, or mute the thread https://github.com/notifications/unsubscribe-auth/AneWxh9POOLFyl85FKNh97cB_DQJfMFTks5uKktogaJpZM4VZxlt .
How can I run the demo program through ros ?