Skip to content

Commit

Permalink
fix ros 280m5 gripper display use
Browse files Browse the repository at this point in the history
  • Loading branch information
wangWking committed Nov 7, 2023
1 parent e9f5fb0 commit c4a9a42
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion mycobot_280/mycobot_280/launch/simple_gui_gripper.launch
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<arg name="port" value="$(arg port)" />
<arg name="baud" value="$(arg baud)" />
</include>
<node name="real_listener_gripper" pkg="mycobot_280" type="listen_real_gripper.py" />
<!-- <node name="real_listener_gripper" pkg="mycobot_280" type="listen_real_gripper.py" /> -->
<node name="real_listener_gripper" pkg="mycobot_280" type="listen_real_gripper.py" output="screen">
<param name="port" value="$(arg port)" />
<param name="baud" value="$(arg baud)" />
</node>
<node name="simple_gui" pkg="mycobot_280" type="simple_gui.py" />
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@
<arg name="baud" value="$(arg baud)" />
</include>
<!-- listen and pub the real angles ,监听并发布真实角度-->
<node name="real_listener_gripper" pkg="mycobot_280" type="listen_real_gripper.py" />
<!-- <node name="real_listener_gripper" pkg="mycobot_280" type="listen_real_gripper.py" /> -->
<node name="real_listener_gripper" pkg="mycobot_280" type="listen_real_gripper.py" output="screen">
<param name="port" value="$(arg port)" />
<param name="baud" value="$(arg baud)" />
</node>
</launch>
Empty file modified mycobot_280/mycobot_280/scripts/detect_marker.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/follow_and_pump.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/follow_display.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/follow_display_gripper.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/following_marker.py
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions mycobot_280/mycobot_280/scripts/listen_real_gripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def talker():
# print(f'error:{e}')
print("--------------error",e)

rospy.loginfo("start loop ...")
# rospy.loginfo("start loop ...")
while not rospy.is_shutdown():
# get real angles from server.从服务器获得真实的角度。
res = func()
Expand All @@ -116,7 +116,7 @@ def talker():
res.joint_6 * (math.pi / 180),
]
radians_list.append(gripper_value)
rospy.loginfo("res: {}".format(radians_list))
# rospy.loginfo("res: {}".format(radians_list))

# publish angles.发布角度
joint_state_send.header.stamp = rospy.Time.now()
Expand Down
Empty file modified mycobot_280/mycobot_280/scripts/simple_gui.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/slider_control.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/slider_control_gripper.py
100644 → 100755
Empty file.
Empty file modified mycobot_280/mycobot_280/scripts/teleop_keyboard.py
100644 → 100755
Empty file.

0 comments on commit c4a9a42

Please sign in to comment.