Slider control

Open a command line and run:

roslaunch mycobot_ros mycobot_slider.launch

It will open the rviz and a slider assembly, and you'll see as the following:

screenshot

You can then control the movement of the model in the rviz by dragging the slider. If you want the real mycobot to move with you, you need to open another command line and run:

rosrun mycobot_ros slider_control.py
#or
rosrun mycobot_ros slider_control.py _port:=/dev/ttyUSB0 _baud:=115200

It publishes the angle to mycobot in real time. The script supports the setting of port numbers and baud rates, with defaults of "/dev/ttyUSB0" and 115200

Model follow

In addition to the controls above, we can also allow the model to follow the real robot arm movement. Open a command line to run:

rosrun mycobot_ros follow_display.py
#or
rosrun mycobot_ros follow_display.py _port:=/dev/ttyUSB0 _baud:=115200

It will release the angle of the real robotic arm. The script supports setting port numbers and baud rates, which are defaulted to"/dev/ttyUSB0"115200

Then open another command line and run:

roslaunch mycobot_ros mycobot_follow.launch

It opens the rviz display model to follow the effect.

results matching ""

    No results matching ""