For the arm and gripper to work with ROS and CANopen we have first to configure the modules to run in CANopen mode. If we can connect to the robot and move it via the Schunk motion tool (SMT) then it means that CANopen is not configured and it wont work in ROS. To configure the arm modules to use CANopen we use the windows CANopen tools provided by Schunk and more precisely the SMPT_ResetToCANopen.exe tool. Alternatively we can switch CANopen on in the SMT in each module individually.
sudo apt-get install ros-kinetic-ros-canopen
sudo apt-get install ros-kinetic-cob-extern
sudo apt-get install ros-kinetic-cob-common
sudo apt-get install ros-kinetic-cob-control
sudo apt-get install ros-kinetic-cob-command-gui
sudo apt-get install ros-kinetic-cob-dashboard
sudo apt-get install ros-kinetic-ros-controllers
sudo apt-get install ros-kinetic-cob-helper-tools
sudo apt-get install ros-kinetic-cob-gazebo-ros-control
sudo apt-get install ros-kinetic-cob-gazebo-plugins
sudo apt-get install ros-kinetic-moveit
- We first have to prepare/open the CANopen bus. For that, we run the
./prepare.sh
script with the arm connected to the usb via the adaptor. - Then we run
roslaunch erl_lwa4d arm.launch
- Then to initialize the arm we run
rosservice call /arm/driver/init
. - If we want to have some more functionality via a dashboard we run
roslaunch erl_lwa4d dashboard.launch
.
- Similar to above we first have to prepare/open the CANopen bus. For that, we run the
./prepare.sh
script. This is only if we want to run the gripper standalone. If we allready have the arm running the CANopen bus is already open. - Then we run
roslaunch erl_pg70 gripper.launch
- Then to initialize the arm we run
rosservice call /pg70/driver/init
. - If we want to have some more functionality via a dashboard we run
roslaunch erl_pg70 dashboard.launch
.
- We first have to run the simulated arm in gazebo. For that
roslaunch erl_lwa4d sim.launch
to open gazebo and load the arm model. - Then we run moveit! to control the arm:
roslaunch erl_lwa4d_moveit_config main_moveit.launch
.
- We first have to run the simulated arm in gazebo. For that
roslaunch erl_lwa4d sim_with_gripper.launch
to open gazebo and load the unified arm + pg70 model. - TODO Then we run moveit! to control the arm:
roslaunch erl_lwa4d_moveit_config main_moveit.launch
.