otter project
-
test continuous control mode To test kinova env, run
python test/keyboard_control.py
and use keyboard to control the end-effector in Cartesian space. -
test discrete control mode run `python test/test_discrete_kinova_control.py' and use keyboard(1,2,3,4,5,6) to control ee to move.
- export PATH=~/anaconda3/bin:$PATH
- source activate py35
- source ~/ProjectOtter/pararl2/ROS/devel/setup.bash
- ./pycharm-2018.3.3/bin/pycharm.sh
open a terminal, then input
- export PYTHONPATH="/usr/lib/python2.7/dist-packages:$PYTHONPATH"
- roslaunch kinova_bringup kinova_robot.launch
open another terminal, then input
- export PYTHONPATH="/usr/lib/python2.7/dist-packages:$PYTHONPATH"
- rosrun otter_kinova_grasping kinova_control.py
#steps to set up realsense
- export PYTHONPATH="/usr/lib/python2.7/dist-packages:$PYTHONPATH"
- roslaunch otter_kinova_grasping kinova_camera.launch
- build ros in Python3.5 terminal in order to use opencv
cd ros/src
catkin_make
source devel/setup.bash
- connect to the kinova
roslaunch kinova_bringup kinova_robot.launch
- open realsense
roslaunch otter_kinova_grasping kinova_camera.launch
and you can open rviz
to visualize the image from the realsense.
- rosrun kinova_controller
export PYTHONPATH="/usr/lib/python2.7/dist-packages:$PYTHONPATH"
rosrun otter_kinova_grasping kinova_control.py
- run the demo
python experiments/myexp/myexp_real_demo.py