-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add arg prefix #7
Conversation
Yes, this seems reasonable. However, I assume that the models and launch files for the e-Series have similar missing pieces? |
I have not looked for e-series, but I can if needed |
Will this be merged soon? I need the prefix to control multiple robots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for the README this seems legit. However, I rather plan to merge in the changes from upstream/melodic-devel-staging soon, which would counteract this PR.
``` | ||
cd $HOME/catkin_ws/src | ||
|
||
# retrieve the sources (replace '$ROS_DISTRO' with the ROS version you are using) | ||
git clone -b $ROS_DISTRO-devel https://github.com/ros-industrial/universal_robot.git | ||
|
||
cd $HOME/catkin_ws | ||
|
||
# checking dependencies (again: replace '$ROS_DISTRO' with the ROS version you are using) | ||
rosdep update | ||
rosdep install --rosdistro $ROS_DISTRO --ignore-src --from-paths src | ||
|
||
# building | ||
catkin_make | ||
|
||
# activate this workspace | ||
source $HOME/catkin_ws/devel/setup.bash | ||
``` | ||
|
||
|
||
__Usage__ | ||
|
||
___With real Hardware___ | ||
There are launch files available to bringup a real robot - either UR5 or UR10. | ||
In the following the commands for the UR5 are given. For the UR10, simply replace the prefix accordingly. | ||
|
||
Don't forget to source the correct setup shell files and use a new terminal for each command! | ||
|
||
To bring up the real robot, run: | ||
|
||
```roslaunch ur_bringup ur5_bringup.launch robot_ip:=IP_OF_THE_ROBOT [reverse_port:=REVERSE_PORT]``` | ||
|
||
|
||
CAUTION: | ||
Remember that you should always have your hands on the big red button in case there is something in the way or anything unexpected happens. | ||
|
||
|
||
___MoveIt! with real Hardware___ | ||
Additionally, you can use MoveIt! to control the robot. | ||
There exist MoveIt! configuration packages for both robots. | ||
|
||
For setting up the MoveIt! nodes to allow motion planning run: | ||
|
||
```roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch``` | ||
|
||
For starting up RViz with a configuration including the MoveIt! Motion Planning plugin run: | ||
|
||
```roslaunch ur5_moveit_config moveit_rviz.launch config:=true``` | ||
|
||
|
||
NOTE: | ||
As MoveIt! seems to have difficulties with finding plans for the UR with full joint limits [-2pi, 2pi], there is a joint_limited version using joint limits restricted to [-pi,pi]. In order to use this joint limited version, simply use the launch file arguments 'limited', i.e.: | ||
|
||
```roslaunch ur_bringup ur5_bringup.launch limited:=true robot_ip:=IP_OF_THE_ROBOT [reverse_port:=REVERSE_PORT]``` | ||
|
||
```roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch limited:=true``` | ||
|
||
```roslaunch ur5_moveit_config moveit_rviz.launch config:=true``` | ||
|
||
|
||
___Usage with Gazebo Simulation___ | ||
There are launch files available to bringup a simulated robot - either UR5 or UR10. | ||
In the following the commands for the UR5 are given. For the UR10, simply replace the prefix accordingly. | ||
|
||
Don't forget to source the correct setup shell files and use a new terminal for each command! | ||
|
||
To bring up the simulated robot in Gazebo, run: | ||
|
||
```roslaunch ur_gazebo ur5.launch``` | ||
|
||
|
||
___MoveIt! with a simulated robot___ | ||
Again, you can use MoveIt! to control the simulated robot. | ||
|
||
For setting up the MoveIt! nodes to allow motion planning run: | ||
|
||
```roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true``` | ||
|
||
For starting up RViz with a configuration including the MoveIt! Motion Planning plugin run: | ||
|
||
```roslaunch ur5_moveit_config moveit_rviz.launch config:=true``` | ||
|
||
|
||
NOTE: | ||
As MoveIt! seems to have difficulties with finding plans for the UR with full joint limits [-2pi, 2pi], there is a joint_limited version using joint limits restricted to [-pi,pi]. In order to use this joint limited version, simply use the launch file arguments 'limited', i.e.: | ||
|
||
```roslaunch ur_gazebo ur5.launch limited:=true``` | ||
|
||
```roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true limited:=true``` | ||
|
||
```roslaunch ur5_moveit_config moveit_rviz.launch config:=true``` | ||
## Authors | ||
* **Dufay Gaëtan** - *Initial work* - [steliaRT](https://github.com/steliaRT) | ||
|
||
## License | ||
This project is licensed under Stelia Aerospace License | ||
|
||
## See also | ||
* [universal_robot](https://github.com/fmauch/universal_robot) | ||
* [Universal_Robots_ROS_Driver](https://github.com/steliaRT/Universal_Robots_ROS_Driver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not completely replace the README file.
Closing in favor of #10 |
All ur.urdf.xacro have a prefix parameter which is not defined in ur_robot.urdf.xacro and ur_joint_limited.urdf.xacro. I added it to avoid duplicate file for a different prefix only.
Default is "" to stay backwards compatible.