pal-robotics / realsense_gazebo_plugin

157 stars 134 forks source link

Error while launching multiple cameras mounted on different robots #17

Open ahmedlebo opened 4 years ago

ahmedlebo commented 4 years ago

While i am writing the urdf file of my robot i put a sensor d435 like the picture below but whenever i try to make multiple robots out of my robot model this error is raised and only one camera is publishing its data and i can't figure how to modify it to have the 2 cameras on different robots pubish on different topics. Screenshot from 2020-06-28 07-23-21

Screenshot from 2020-06-28 06-18-55 Screenshot from 2020-06-28 06-18-28 Screenshot from 2020-06-28 06-17-56

v-lopez commented 4 years ago

You should provide name parameter like you do with parent: https://github.com/pal-robotics-forks/realsense/blob/kinetic-devel/realsense2_description/urdf/_d435.urdf.xacro#L15

Otherwise it defaults to camera

ahmedlebo commented 4 years ago

Screenshot from 2020-06-30 09-02-11 Thanks v-lopez for your reply but When i run view frames this is what i get so it identifies in the d435.urdf.xacro the paramter name and could create the frames correctly but when it comes to the call of the gazebo plugin it doesn't change the camera_name to name that i understand that is the same paramter name creating the names of frames which comes in the prefix paramater and the topics should be with this shape(prefix/topic) Screenshot from 2020-06-30 08-56-40 Screenshot from 2020-06-30 08-56-47

frames.pdf

ahmedlebo commented 4 years ago

Please help me with this i am spending quite a while now with so many trials and none works till now

Ahmedkaramakka commented 3 years ago

@v-lopez I have the same issue , trying to launch multiple robots each with its distinct real sense plugin with no success unfortunately. this the launch file used for multiple robots

and this is the file (karam_onerobot.launch)

-->

so i am calling the robot urdf each time , inside the robot urdf file i called the gazebo realsense plugin , so I was supposing that it should be repeated with each robot individually like the plugins and laser sensor for an example . ( but this didn't happen)

inside my robot urdf i called the gazebo plugin using these commands

parent="chasis" name ="${robot_name}" topics_ns = "${robot_name}"

as you can see I tried to pass the parameters that is asked for in f435 urdf xacro , this didn't work either

so i also tried these commands instead in my robot urdf

I assumed that i have no need to pass the parameters like we do in the laser plugin but also this failed

so any solutions or ideas suggested ?

chongjeelee commented 2 years ago

i also met the same problem! anyone can solve it ?thanks.

Wayne-xixi commented 2 years ago

Hi, I have the same issue when I used group and namespace for multiple robot simulation. @Ahmedkaramakka @v-lopez @ahmedlebo @chongjeelee @lucamarchionni Did you guys find a solution? Thanks in advance.