Clearpath Husky customized configuration not showing up
So I followed http://wiki.ros.org/husky_bringup/Tut... . I and ended up with this file husky_customization/husky_custom_description/urdf/custom_description.urdf.xacro:
<robot name="husky" xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:arg name="laser_enabled" default="$(optenv HUSKY_LMS1XX_ENABLED false)" />
<xacro:arg name="ur5_enabled" default="$(optenv HUSKY_UR5_ENABLED false)" />
<xacro:arg name="kinect_enabled" default="false" />
<xacro:include filename="$(find husky_description)/urdf/husky.urdf.xacro" />
<xacro:husky_robot />
<!-- Insert customization below, sample provided: -->
<link name="avt_pan_link">
<visual>
<geometry>
<mesh filename="package://husky_custom_description/meshes/Manta+G32C.dae" />
</geometry>
</visual>
<collision>
<origin xyz="0 0 0.0" rpy="0 0 0" />
<geometry>
<box size="0.32 0.25 0.14" rpy="0 0 0"/>
</geometry>
</collision>
</link>
<xacro:sensor_arch prefix="" parent="top_plate_link">
<origin xyz="0 0 0.51" rpy="0 0 -3.14"/>
</xacro:sensor_arch>
<joint name="avt_pan_joint" type="continuous">
<parent link="sensor_arch_mount_link" />
<child link="avt_pan_link" />
<axis xyz ="0 0 1"/>
<origin xyz="0.05 0.0 0.0" rpy="0 0 1.57" />
</joint>
</robot>
The visualization works just fine if I run everything on my laptop via roslaunch husky_viz view_robot.launch. It DOES NOT work on the actual Husky. The arch and the camera do not show up. I see that base.launch calls description.launch which references the HUSKY_DESCRIPTION var. Strangely enough, this var is set correctly:
$ echo $HUSKY_DESCRIPTION
<workspace>/src/husky_customization/husky_custom_description/urdf/custom_description.urdf.xacro
But when I call rosparam get /robot_description the returned URDF does not contain my custom description. There is no transform published for the arch/camera and the arch does not show up in rviz. What am I doing wrong?
Is this on an actual Husky that has been configured with robot_upstart?
Yes, this is on the Husky. I've run rosrun husky_bringup install.
I assume you have a workspace with your customization? Does the file in
/etc/ros/setup.bash
source that work space?Hi, yes, it does. If I roscd to husky_customization, it brings me into my workspace correctly. I am unclear on step 7 from this tutorial, I'm not really adding any new launch files but I'm wondering if I should be
Mind providing the output of that file?
cat /etc/ros/setup.bach
Ahh, I just figured it out. There was another ROS workspace being sourced AFTER mine and that somehow screwed things up. I either need to copy husky_customization to the last workspace being sourced, get rid of the workspace without husky_customization, or change the order of workspaces!