Condition to move NXT motors

asked 2015-12-03 10:29:54 -0500

Kzr gravatar image

updated 2015-12-04 00:32:56 -0500

Akif gravatar image

I've been playing with ROS+Lego NXT and after successfully playing with the sensors I got stuck trying to stop the motor when sensor touch is True. I don't know how to do it, and have no idea. I already move the motors using:

rostopic pub -1 joint_command nxt_msgs/JointCommand -- l_motor_joint XX

and

rostopic pub /joint_command nxt_msgs/JointCommand '{name: 'motor', effort: 2}'

Any ideas? thanks

edit retag flag offensive close merge delete