ros / joint_state_publisher

http://wiki.ros.org/joint_state_publisher
50 stars 81 forks source link

Question regarding the ros2-devel usage #19

Closed JaehyunShim closed 5 years ago

JaehyunShim commented 5 years ago

Hi,

I am trying to use the joint_state_publisher package for ROS2 development. I downloaded the package, switched it to the ros2-devel branch, colcon built, and I did not get any error messages. Now I am confused about how I should use the 'source_list' parameter.

[From original ROS1 launch file]

<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
  <param name="use_gui" value="true"/>
  <rosparam param="source_list" subst_value="true">["robot/joint_states"]</rosparam>
</node>

[ROS2]

Node(
    package='joint_state_publisher',
    node_executable='joint_state_publisher',
    node_name='joint_state_publisher',
    parameters=[{'use_gui': "true"}],

    # Below is what I do not know how to use...
    # parameters=[{'/source_list': "true" 'robot/joint_states'}],

    output='screen'),

Thank you in advance! Ryan