-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to use Moveit package to control KR6R900 via RSI interface #121
Comments
Please revert the changes you made to the xacro macro. If the driver works correctly, there is no need to make any changes. In fact, I have a suspicion that those changes are what is causing you trouble. |
thanks @gavanderhoorn, I will modify the xacro macro file as soon as I get back to the Lab and will update the post afterwards. |
I reverted the xacro macro to the default value (fully stretched)and now when I launch the moveit plug-in the robot posture is shown correctly. when i try to move the robot from Rviz gui, plan and execute it, the robot in Rviz moves but the actual robot does not move accordingly. is it due to the fake trajectory execution and my launch file ? |
Yes, most likely. The fact that MoveIt's robot state display also doesn't correspond to the actual state of your robot probably indicates that the launch file you use is not correctly setup (ie: MoveIt is not using the |
would you please give more hints about composing a correct launch file to load the robot description, Rviz , Moveit etc. ? |
Two things (or datastreams really) are important here:
For the first, you'll need:
For the second:
For both of these, you could take at #17 for some examples, specifically config/controllers.yaml and the See also the Create a MoveIt Package for an Industrial Robot tutorial, specifically the Update Configuration Files and following sections. Edit: you could also take a look at gavanderhoorn/kuka_experimental/kr6r900sixx_moveit_rsi_convenience/kuka_kr6r900sixx_moveit_config, but note that it's really just an example, and especially the way the RSI interface is 'integrated' is not something you should copy. |
@gavanderhoorn thanks for the instruction , I have gone through the steps:
my controllers.yaml is as:
when I move the robot via rqt_joint_trajectory_controller I can see the robot moving also in Rviz. |
Do you see any errors or warning when starting I'm not sure immediately what your issue is, but I would verify that first. The example moveit config I linked you to follows the "ROS-Industrial specifications" for robot drivers. In this particular case that means that there are certain expectations about locations of action server topics and namespaces. The You could take a look at kuka_kr6r900sixx_moveit_config/config/controllers.yaml and see whether a setup like that works better. Note the absence of the |
Problem solved! updating the controllers.yaml as:
@gavanderhoorn thank you again for you help. |
I'm not sure where the additional namespace is coming from, but if it works for you, then +1. |
Seeing as you've appeared to have resolved your problems, I'm closing this issue. |
I have successfully managed to move the robot after establishing an RSI interface and installing RT-Preeemt kernel for my PC.
in order to move the robot I load an Moveit! RViz Plugin package built with KR6R900 xacro file.
after that I launch
roslaunch kuka_rsi_hw_interface test_hardware_interface.launch sim:=false
by establishing the connection and giving to real time priority to
kuka_rsi_hw_interface
without problem, I can move each joint using:
rosrun rqt_joint_trajectory_controller rqt_joint_trajectory_controller
after establishing the RSI connection, the 3D model of the robot in Moveit interface, shows the initial position of the robot somewhere strange (all joints at 0).
this problem, results in failing the possibility to command the robot from Moveit, as it can not find a feasible solution.
initial position defined in my ros_rsi.src is
the same as the setting in the XACRO file. exapmle:
the parameter "robot_description" is not loaded in the test launch file as it has been already loaded in the Moveit package.
Does anyone know that what the problem is ?
The text was updated successfully, but these errors were encountered: