open two vrpn_client_ros nodes with different parent frame
Hello, I am using optitrack's motive and vrpn_client_ros on ROS kinetic: it works really well and I would like to go further! I am looking for a way to get twice the data that optitrack is sending but change the parent frame so I can do different transformation for each parent frame. I tried something with the launch file above but it seems that I cannot run twice the same node, or at least because the child frame renaming is not really working. Do you know a way of doing this ? Thank you for your answers
<launch>
<node pkg="trimbot_optitrack" type="optitrack_world_tf_broadcaster.py" name="broadcaster_fixed" />
<arg name="server" default="localhost"/>
<node pkg="vrpn_client_ros" type="vrpn_client_node" name="vrpn_client_node_1" output="screen">
<rosparam subst_value="true">
server: $(arg server)
port: 3883
update_frequency: 100.0
frame_id: parent_frame_1
# Use the VRPN server's time, or the client's ROS time.
use_server_time: false
broadcast_tf: true
# Must either specify refresh frequency > 0.0, or a list of trackers to create
#refresh_tracker_frequency: 1.0
trackers:
- FirstTracker1
- SecondTracker1
</rosparam>
</node>
<node pkg="vrpn_client_ros" type="vrpn_client_node" name="vrpn_client_node_2" output="screen">
<rosparam subst_value="true">
server: $(arg server)
port: 3883
update_frequency: 100.0
frame_id: parent_frame_2
# Use the VRPN server's time, or the client's ROS time.
use_server_time: false
broadcast_tf: true
# Must either specify refresh frequency > 0.0, or a list of trackers to create
refresh_tracker_frequency: 1.0
trackers:
- FirstTracker2
- SecondTracker2
</rosparam>
</node>
</launch>