Skip to content

Conversation

@k-okada
Copy link
Member

@k-okada k-okada commented Apr 8, 2025

see https://github.com/sktometometo/eye-display as original development source tree and sktometometo/eye-display#27 for discussion

@k-okada
Copy link
Member Author

k-okada commented Jul 18, 2025

@sawada10 実際のロボットで2つの目を立ち上げているlaunchファイルってどこあるかな?
https://github.com/jsk-ros-pkg/jsk_3rdparty/pull/522/files#diff-b3046c75c38ac0eb902a33f1fabbf6af0bbd623c990960e9569a50bf111a249b
を使って

<launch>
  <include file="$(find eye_display)/launch/kuromitsu.launch >
     <args name="mode_right" value="true">
  </include>
  <include file="$(find eye_display)/launch/kuromitsu.launch >
     <args name="mode_right" value="left">
  </include>
</launch>

みたいにしてくれるとよいなと思っていたけど,実はノードの名前がかぶったりして,うまくいっていなかったりする?

@sawada10
Copy link
Contributor

sawada10 commented Jul 18, 2025

おっしゃる通りで、そのまま2つ立ち上げようとしてノード名かぶってうまくいかなかったので、
以下のようにlaunchファイルのなかでノード名をeye_display_right/leftに指定してます。

  <!-- Launch serial_node for the right eye -->
  <node
      pkg="rosserial_python"
      type="serial_node.py"
      name="eye_display_right"
      output="screen"
      >
    <param name="~port" value="/dev/ttyACM-righteye"/>
    <param name="~baud" value="57600"/>
    <param name="~mode_right" value="true"/>
    <param name="~direction" value="4"/>
    <rosparam command="load" ns="eye_asset" file="$(find eye_display)/launch/$(arg robot_name).yaml" />
  </node>

  <!-- Launch serial_node for the right eye -->
  <node
      pkg="rosserial_python"
      type="serial_node.py"
      name="eye_display_left"
      output="screen"
      >
    <param name="~port" value="/dev/ttyACM-lefteye"/>
    <param name="~baud" value="57600"/>
    <param name="~mode_right" value="false"/>
    <param name="~direction" value="4"/>
    <rosparam command="load" ns="eye_asset" file="$(find eye_display)/launch/$(arg robot_name).yaml" />
  </node>

launchファイルはここに置いてます
https://github.com/sawada10/jsk_demos/blob/kashiwagi-call-person-name/jsk_2023_12_codesign/launch/codesigned_module.launch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants