Creating two nodes with same frame id, but different topics
Hi everyone,
I have quite a few bagfiles containing different messages which I want to display using rviz.
The problem is that I have two messages with the same message type and same frame id, but I want them to be displayed as two different nodes, which I want to create using a launch-file. They have different topics, though.
Does anyone know how to achieve that?
Thanks in advance!
Edit: Sorry for any unclarity. What I want to achieve is to get two nodes similar to this one:
<node name="tf_imu" pkg="static_transform_publisher" args="-1 0 3.5 3.14159 -1.5708 0 base_link imu 200" />
The thing I want to achieve is to get a different transformation for each of them, so the args should be slightly different. But both messages are of type "sensor_msgs/Imu".
The topics look like this:
- /imu1/imu/imu
- /imu2/imu/imu
And they both have the frame id "imu". Is there anything I can do to achieve that?
What do you mean by "displayed as two different nodes"? If the data is already in separate topics, then playing the bag file will keep it in separate topics.