Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while launching multiple cameras mounted on different robots #17

Open
ahmedlebo opened this issue Jun 28, 2020 · 6 comments
Open

Comments

@ahmedlebo
Copy link

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
Copy link
Contributor

v-lopez commented Jun 29, 2020

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
Copy link
Author

ahmedlebo commented Jun 30, 2020

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
Copy link
Author

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

@Ahmedkaramakka
Copy link

@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

<param name="tf_prefix" value="robot1_tf" />


<include file="$(find robot_gp)/launch/karam_onerobot.launch" >
  <arg name="init_pose" value="-x 1 -y 1 -z 0" />
 <arg name="robot_name"  value="Robot1" />

</include>
<param name="tf_prefix" value="robot2_tf" />


<include file="$(find robot_gp)/launch/karam_onerobot.launch" >

  <arg name="init_pose" value="-x -1 -y 1 -z 0" />
  <arg name="robot_name"  value="Robot2" />

</include>
<param name="tf_prefix" value="robot3_tf" />


<include file="$(find robot_gp)/launch/karam_onerobot.launch" >

  <arg name="init_pose" value="-x 2 -y 1 -z 0" />
  <arg name="robot_name"  value="Robot3" />

</include>
  <arg name="init_pose" value="-x -2 -y 1 -z 0" />
  <arg name="robot_name"  value="Robot4" />

</include>

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
<xacro:include filename="$(find robot_gp)/urdf/_d435.urdf.xacro"/>
<sensor_d435>
parent="chasis"

name ="${robot_name}"
topics_ns = "${robot_name}"</sensor_d435>

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
<xacro:include filename="$(find robot_gp)/urdf/_d435.urdf.xacro"/>
<sensor_d435>

</sensor_d435>

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
Copy link

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

@Wayne-xixi
Copy link

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.

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

No branches or pull requests

5 participants