Subscribe to lidar node on another machine and run rviz
Hi,
I have 2 machines on the same network. Machine A has master ros uri and has lidar attached. It is the publisher of lidar topic. I wish to run rviz on machine B to view the output of lidar on machine A. I wrote a subscription method on machine B. When i run rviz, rviz subscribes to machine A instead of using the already subscribed node to machine A.
How do I ask rviz to get data from my subscription instead of having rviz subscribes again to lidar topic.
Can you describe your exact setup, i.e., what nodes on what machine subscribing/publishing which topics - and also what kind of setup you want to achieve. For me, right now, it seems you want to do something that doesn't make sense.
Does your subscriber on MachineB publish anything? If you are modifying the incoming laser data and then re-publishing it, you could then on rviz, view only the new 're-published' topic.