Project to give 2DOF to cameras installed on Meka robot, in this case, Kinect You will need meka_description and common_sensors (to load Kinect model properly) from [here] (https://github.com/EnriqM/meka_pmb2_ros/) Reference to pololu and CNC shield for schematics
Designs were entirely made (and more complete) by JDLR in [reference his project will be here in upcoming days] Connection of end switches are connected like this:
COM goes to X+ (or Z+ for the other DOF). NC is connected to GND (both of them). Input_pullup from Arduino is used to avoid errors.
There are a few steps in order to upload your code in Arduino and setting it up:
- Download the code (don't forget meka_description and common_sensors!) Add the git repository to your catkin workspace:
cd <your-catkin-ws>/src
git clone https://github.com/EnriqM/head_meka.git
Make sure you give permissions to the python files !!
-
Make sure you download the AccelStepper (AccelStepper Library Download) and ros_lib (rosserial-arduino tutorial) libraries into your Arduino environment.
- If ros_lib already exists in your Arduino libraries (/libraries), follow the last troubleshooting tip or you'll get an error. ROS makes you remove ros_lib and regenerate it every time you introduce a new custom message.
-
Run the next code. At this point, your Arduino needs to be connected, you'll have write the next commands. Serial port may change, you can check it easily using Arduino IDE EDIT: script from Arduino that is currently used is
rosrun rosserial_python serial_node.py /dev/ttyACM0
roslaunch head_meka_description head_urdf.launch
rosrun head_meka_control steps_goals.py