mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-14 09:00:53 +00:00
Merge pull request #63 from elephantrobotics/mypal260_notes
Mypal260 notes
This commit is contained in:
commit
a29a1503b3
4 changed files with 6 additions and 5 deletions
|
|
@ -9,11 +9,11 @@
|
||||||
|
|
||||||
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
|
<param name="robot_description" command="$(find xacro)/xacro --inorder $(arg model)" />
|
||||||
|
|
||||||
<!-- Combinejoin values to TF ,将值合并到 TF-->
|
<!-- Combinejoin values to TF,将值合并到 TF-->
|
||||||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
|
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
|
||||||
<!-- Show in Rviz -->
|
<!-- Show in Rviz -->
|
||||||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
|
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
|
||||||
<!-- mycobot-topics, mycobot-话题-->
|
<!-- mycobot-topics, mycobot-话题-->
|
||||||
<include file="$(find mypalletizer_communication)/launch/communication_service.launch">
|
<include file="$(find mypalletizer_communication)/launch/communication_service.launch">
|
||||||
<arg name="port" value="$(arg port)" />
|
<arg name="port" value="$(arg port)" />
|
||||||
<arg name="baud" value="$(arg baud)" />
|
<arg name="baud" value="$(arg baud)" />
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@
|
||||||
<param name="use_gui" value="$(arg gui)" />
|
<param name="use_gui" value="$(arg gui)" />
|
||||||
<!-- <rosparam param="source_list" subst_value="true">["joint_states"]</rosparam> -->
|
<!-- <rosparam param="source_list" subst_value="true">["joint_states"]</rosparam> -->
|
||||||
</node>
|
</node>
|
||||||
<!-- Show in Rviz,显示在Rviz -->
|
<!-- Show in Rviz.显示在Rviz -->
|
||||||
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
|
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
|
||||||
</launch>
|
</launch>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,8 @@ class Listener(object):
|
||||||
Args:
|
Args:
|
||||||
data (MycobotAngles): callback argument.
|
data (MycobotAngles): callback argument.
|
||||||
"""
|
"""
|
||||||
# ini publisher object. 初始化发布者对象
|
# ini publisher object.
|
||||||
|
# 初始化发布者对象
|
||||||
joint_state_send = JointState()
|
joint_state_send = JointState()
|
||||||
joint_state_send.header = Header()
|
joint_state_send.header = Header()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ class MoveItPlanningDemo:
|
||||||
# API to initialize move_group. 初始化move_group的API
|
# API to initialize move_group. 初始化move_group的API
|
||||||
moveit_commander.roscpp_initialize(sys.argv)
|
moveit_commander.roscpp_initialize(sys.argv)
|
||||||
|
|
||||||
# Initialize the ROS node. 初始化ROS节点
|
# Initialize the ROS node,初始化ROS节点
|
||||||
rospy.init_node("moveit_ik_demo")
|
rospy.init_node("moveit_ik_demo")
|
||||||
|
|
||||||
# Initialize the scene object to listen for changes in the external environment
|
# Initialize the scene object to listen for changes in the external environment
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue