mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
fix ros 280m5 gripper display use
This commit is contained in:
parent
e9f5fb086a
commit
c4a9a42c13
12 changed files with 12 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
0
mycobot_280/mycobot_280/scripts/detect_marker.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/follow_and_pump.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/follow_and_pump.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/follow_display.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/follow_display.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/follow_display_gripper.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/follow_display_gripper.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/following_marker.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/following_marker.py
Normal file → Executable 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
0
mycobot_280/mycobot_280/scripts/simple_gui.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/slider_control.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/slider_control.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/slider_control_gripper.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/slider_control_gripper.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/teleop_keyboard.py
Normal file → Executable file
0
mycobot_280/mycobot_280/scripts/teleop_keyboard.py
Normal file → Executable file
Loading…
Add table
Reference in a new issue