Gazebo | Ignition | Community
Ask Your Question
0

Clearpath Husky - Adding Camera Plugin

asked 2022-03-30 05:48:54 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, I have installed Clearpath husky on Ubuntu 20.04 Focal Fossa with ROS Noetic. My goal is to add a camera on clearpath husky but I get a few errors below.

unknown macro name: xacro:default_inertial
when processing file: /opt/ros/noetic/share/husky_description/urdf/husky.urdf.xacro
RLException: while processing /opt/ros/noetic/share/husky_gazebo/launch/spawn_husky.launch:
while processing /opt/ros/noetic/share/husky_control/launch/control.launch:
while processing /opt/ros/noetic/share/husky_description/launch/description.launch:
Invalid <param> tag: Cannot load command parameter [robot_description]: command [['/opt/ros/noetic/lib/xacro/xacro', '/opt/ros/noetic/share/husky_description/urdf/husky.urdf.xacro', 'robot_namespace:=/']] returned with code [2]. 

Param xml is <param name="robot_description" command="$(find xacro)/xacro '$(find husky_description)/urdf/husky.urdf.xacro'     robot_namespace:=$(arg robot_namespace)"/>
The traceback for the exception was written to the log file

Here are my xacro file, GoogleDrive

Thx for helping.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-04 00:06:54 -0500

joshuacv gravatar image

updated 2022-04-04 00:24:30 -0500

did you run the following commands?

source /opt/ros/noetic/setup.bash
source <catkin_ws>/devel/setup.bash

Make sure a folder called "husky description" is in /opt/ros/noetic/share (if you are using noetic)

if all of this is correct - the following line in the launch file worked for me with noetic:

<param name="robot_description" command="$(find xacro)/xacro '$(find husky_description)/urdf/husky.urdf.xacro'
  robot_namespace:=$(arg namespace)">
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2022-03-30 05:48:54 -0500

Seen: 32 times

Last updated: Apr 04