fix ros 280m5 gripper display use

This commit is contained in:
wangWking 2023-11-07 17:26:12 +08:00
parent e9f5fb086a
commit c4a9a42c13
12 changed files with 12 additions and 4 deletions

View file

@ -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>

View file

@ -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>

0
mycobot_280/mycobot_280/scripts/detect_marker.py Normal file → Executable file
View file

0
mycobot_280/mycobot_280/scripts/follow_and_pump.py Normal file → Executable file
View file

0
mycobot_280/mycobot_280/scripts/follow_display.py Normal file → Executable file
View file

View file

0
mycobot_280/mycobot_280/scripts/following_marker.py Normal file → Executable file
View file

View file

@ -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()
@ -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()

0
mycobot_280/mycobot_280/scripts/simple_gui.py Normal file → Executable file
View file

0
mycobot_280/mycobot_280/scripts/slider_control.py Normal file → Executable file
View file

View file

0
mycobot_280/mycobot_280/scripts/teleop_keyboard.py Normal file → Executable file
View file