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

Why is the namespace hardcoded to "/" for the urdf files? #44

Open
sciencectn opened this issue Mar 17, 2017 · 3 comments
Open

Why is the namespace hardcoded to "/" for the urdf files? #44

sciencectn opened this issue Mar 17, 2017 · 3 comments

Comments

@sciencectn
Copy link

sciencectn commented Mar 17, 2017

As you can see here in the Pioneer 3AT file, the namespace for the robot is hardcoded to "/":
https://github.com/allenh1/p2os/blob/master/p2os_urdf/defs/pioneer3at_body.xacro#L376

This means if you try changing the namespace in a launch file, it ignores it. For instance, to make it show up in Gazebo:

<group ns="robot0">
    <include file="$(find p2os_urdf)/launch/upload_pioneer3at.xml" />
    <node args="-x 0 -y 0  -z 0.2 -urdf -param robot_description -model pioneer" name="spawn_pioneer" output="screen" pkg="gazebo_ros" respawn="false" type="spawn_model"/>
</group>

We should see "/robot0/cmd_vel" as a ROS topic, but it just shows up as "/cmd_vel".

If you delete this line it works as normal.

@allenh1
Copy link
Owner

allenh1 commented Mar 18, 2017

That is a very good question. Would you like to patch it, or do you just want me to do it?

@sciencectn
Copy link
Author

I tried patching it, but I could only get the Pioneer 3AT to work and not the 3dx. The 3dx doesn't want to give me a cmd_vel or odom topic.

I undid all my changes and just tried pioneer3dx.gazebo.launch and it still doesn't work. Does it work for you?

@allenh1
Copy link
Owner

allenh1 commented Mar 19, 2017 via email

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

2 participants