Closed hychiang-git closed 5 years ago
I fix the problem by modifying the ur5_move.launch. Here is the modified launch file.
<launch>
<!-- If sim=false, then robot_ip is required -->
<arg name="sim" default="true" />
<arg name="robot_ip" unless="$(arg sim)" />
<!-- By default, we are not in debug mode -->
<arg name="debug" default="false" />
<!-- Limited joint angles are used. Prevents complex robot configurations and makes the planner more efficient -->
<arg name="limited" default="true" />
<!-- Launch ur_gazebo -->
<include file="$(find ur_gazebo)/launch/ur5.launch">
<arg name="limited" default="true" />
</include>
<!-- Load UR5 URDF file - robot description file -->
<include file="$(find ur5_moveit_config)/launch/ur5_moveit_planning_execution.launch">
<arg name="sim" value="$(arg sim)" />
<arg name="limited" value="$(arg limited)" />
</include>
<!-- Launch the RViz visualizer -->
<include file="$(find ur5_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true" />
</include>
<!-- Optionally, you can launch a database to record all the activities -->
<include file="$(find ur5_moveit_config)/launch/default_warehouse_db.launch" />
<!-- Launch our own script -->
<node name="move_group_interface_tutorial" pkg="ur5_move" type="move_group_interface_tutorial" respawn="false" output="screen"></node>
</launch>
Hi all,
I tried to write some c++ code to control the UR5 robot simulated in Rviz by using universal_robot package. However, It seems that robot stops at the position where is not as it planned, please look into the gif at the end of the issue. How would I solve the problem? Thanks
I recorded all my steps for building this package and provided them here for someone could look into the details.
New a workspace
Clone universal robot package
Create our package
create ur5_move.launch file under
ur5_moveit_ws/src/ur5_move/
make the package
try to launch
I can see a UR5 Robot is put in Rviz, so far so good.
add
move_group_interface_tutorial.cpp
underur5_moveit_ws/src/ur5_move/
modify CMakeLists.txt under
ur5_moveit_ws/src/ur5_move/
make the package
add the node to
ur5_move.launch
launch filelaunch and test move
So here comes the problem: the robot stops at the position where is not as it planned.
Is there something wrong during building the package? or would someone point out how I could fix this problem?
Thanks again!