mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
fix: suit dae model.
This commit is contained in:
parent
c00f9b4c4a
commit
cd2727df9e
6 changed files with 121 additions and 75677 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.VSCodeCounter/
|
||||||
|
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,13 +45,13 @@ class MoveItIkDemo:
|
||||||
target_pose = PoseStamped()
|
target_pose = PoseStamped()
|
||||||
target_pose.header.frame_id = reference_frame
|
target_pose.header.frame_id = reference_frame
|
||||||
target_pose.header.stamp = rospy.Time.now()
|
target_pose.header.stamp = rospy.Time.now()
|
||||||
target_pose.pose.position.x = 0.14996
|
target_pose.pose.position.x = 0.132
|
||||||
target_pose.pose.position.y = 0.12317
|
target_pose.pose.position.y = 0.150
|
||||||
target_pose.pose.position.z = 0.21203
|
target_pose.pose.position.z = 0.075
|
||||||
target_pose.pose.orientation.x = -0.59375
|
target_pose.pose.orientation.x = 0.026
|
||||||
target_pose.pose.orientation.y = -0.60903
|
target_pose.pose.orientation.y = 1.0
|
||||||
target_pose.pose.orientation.z = -0.13927
|
target_pose.pose.orientation.z = 0.0
|
||||||
target_pose.pose.orientation.w = 0.5071
|
target_pose.pose.orientation.w = 0.014
|
||||||
|
|
||||||
# 设置机器臂当前的状态作为运动初始状态
|
# 设置机器臂当前的状态作为运动初始状态
|
||||||
arm.set_start_state_to_current_state()
|
arm.set_start_state_to_current_state()
|
||||||
|
|
@ -67,14 +67,18 @@ class MoveItIkDemo:
|
||||||
rospy.sleep(1)
|
rospy.sleep(1)
|
||||||
|
|
||||||
# 控制机械臂终端向右移动5cm 參數1是代表y, 0,1,2,3,4,5 代表xyzrpy
|
# 控制机械臂终端向右移动5cm 參數1是代表y, 0,1,2,3,4,5 代表xyzrpy
|
||||||
arm.shift_pose_target(1, -0.05, end_effector_link)
|
arm.shift_pose_target(1, 0.12, end_effector_link)
|
||||||
|
arm.go()
|
||||||
|
rospy.sleep(1)
|
||||||
|
|
||||||
|
arm.shift_pose_target(1, 0.1, end_effector_link)
|
||||||
arm.go()
|
arm.go()
|
||||||
rospy.sleep(1)
|
rospy.sleep(1)
|
||||||
|
|
||||||
# 控制机械臂终端反向旋转90度 0,1,2,3,4,5 代表xyzrpy
|
# 控制机械臂终端反向旋转90度 0,1,2,3,4,5 代表xyzrpy
|
||||||
arm.shift_pose_target(3, -1.57, end_effector_link)
|
# arm.shift_pose_target(3, -1.57, end_effector_link)
|
||||||
arm.go()
|
# arm.go()
|
||||||
rospy.sleep(1)
|
# rospy.sleep(1)
|
||||||
|
|
||||||
# 控制机械臂回到初始化位置
|
# 控制机械臂回到初始化位置
|
||||||
# arm.set_named_target("home")
|
# arm.set_named_target("home")
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -6,9 +6,9 @@
|
||||||
<visual>
|
<visual>
|
||||||
<geometry>
|
<geometry>
|
||||||
<!--- 0.0 0 -0.04 1.5708 3.14159-->
|
<!--- 0.0 0 -0.04 1.5708 3.14159-->
|
||||||
<mesh filename="package://mycobot_description/urdf/mycobot/210110_6000_001_asm.dae"/>
|
<mesh filename="package://mycobot_description/urdf/mycobot/suit_env.dae"/>
|
||||||
</geometry>
|
</geometry>
|
||||||
<origin xyz = "0 0 0 " rpy = "1.5708 0 -1.5708"/>
|
<origin xyz = "0 0 -0.02 " rpy = "1.5708 0 -1.5708"/>
|
||||||
</visual>
|
</visual>
|
||||||
</link>
|
</link>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@
|
||||||
<visual>
|
<visual>
|
||||||
<geometry>
|
<geometry>
|
||||||
<!--- 0.0 0 -0.04 1.5708 3.14159-->
|
<!--- 0.0 0 -0.04 1.5708 3.14159-->
|
||||||
<mesh filename="package://mycobot_description/urdf/mycobot/210110_6000_001_asm.dae"/>
|
<mesh filename="package://mycobot_description/urdf/mycobot/suit_env.dae"/>
|
||||||
</geometry>
|
</geometry>
|
||||||
<origin xyz = "0 0 0 " rpy = "1.5708 0 -1.5708"/>
|
<origin xyz = "0 0 -0.02 " rpy = "1.5708 0 -1.5708"/>
|
||||||
</visual>
|
</visual>
|
||||||
</link>
|
</link>
|
||||||
|
|
||||||
101
mycobot_description/urdf/mycobot/suit_env.dae
Normal file
101
mycobot_description/urdf/mycobot/suit_env.dae
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue