Hello all,
Short Version:
I have a Husky and a Kinova arm which I'd like to run under a namespace. This block of code results in a correctly spawned Husky with an arm (albeit uncontrolled) in Gazebo:
When I add joint_trajectory_controller to the spawner, /joint_states publishes NaNs, and the robot and all joints get moved to the origin.
Long Version:
I am trying to set up an environment with two Huskies, each with a Kinova arm for ROS Kinetic. I've managed to modify the Husky launch files, xacros, and yaml files to work with namespaces using [nre_summultihusky](https://github.com/bsb808/nre_simmultihusky/wiki) for Indigo as the blueprint for Kinetic. Now, I am trying to set up the Kinova arm for use with namespaces.
The Kinova arm is controlled with joint_trajectory_controller, which does not work with namespaces. So, I modified the source as described [here](https://answers.ros.org/question/267332/how-to-change-the-robot_description-paramter-for-the-joint_trajectory_controller/) so that a namespace can be prepended to robot_description.
However, when I try to run, something is failing. All movable joints are spawning at the origin. It looks like this:

If you were to look under the map you would see the arm and wheels all smashed together under the vehicle at the origin. There are no errors, as you will see in the below print out.
These lines were modified in j2n6s300.urdf.xacro
>>>
Here is my control.launch:
$(arg tfpre)/base_link /$(arg namespace)/robot_description /$(arg namespace)/robot_description
The only minor change to j2n6s300_control.yaml is that I am using the modified joint controller with "_ns" appended to the name.
> type: effort_controllers_ns/JointTrajectoryController
The following lines have been added to husky.urdf.xacro:
> > >> >>>> >> > >> >>> >> > > >>>> > > > >> >>>>map >base_link >base_pose_ground_truth >30.0 > >
Nothing especially interesting in the console output. No errors.
Any idea how I can debug this?
↧