Ask Your Question
0

RLException: environment variable 'HUSKY_MAG_CONFIG' is not set. The traceback for the exception was written to the log file

asked 2022-04-27 06:12:04 -0500

AN JONGSU gravatar image

updated 2022-04-27 09:08:44 -0500

Hi, I got problem while I was launch a gps_waypoint_nav package.

(https://github.com/ArghyaChatterjee/g...) <= This is the original package, and I edit some parts to make it work.

Anyway I got error message as same as I wrote at title. If anyone can handle this problem, please help me!!

Error message :

RLException: environment variable 'HUSKY_MAG_CONFIG' is not set.
The traceback for the exception was written to the log file
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-28 03:16:34 -0500

Joe28965 gravatar image

It's part of the Husky robot from Clearpath. The environmental variable is used in line 26.

environment variable is a variable that you set in your terminal/bashrc. However, I checked where the variable came from. In the Husky repo it's used here to set the path of your config file as an environment variable OR use find('husky_bringup')+'/config/mag_config_default.yaml') as default. Checking that path gives us this config.

I think you should get the same result if you go back to that first link I send and change

<rosparam file="$(env HUSKY_MAG_CONFIG)" />
<rosparam>
  orientation_stddev: 0.001
  gain: 0.01
  zeta: 0.001
  publish_tf: false
</rosparam>

to

<rosparam>
  use_mag: false
  mag_bias_x: 0
  mag_bias_y: 0
  mag_bias_z: 0
  orientation_stddev: 0.001
  gain: 0.01
  zeta: 0.001
  publish_tf: false
</rosparam>

Basically just adding the parameters from that default config files to the list instead of using the config file.

The second option would be to install the Husky packages and add HUSKY_MAG_CONFIG as an environment variable in your bashrc

edit flag offensive delete link more

Comments

Unfortunately, it doesnt't work...

AN JONGSU gravatar image AN JONGSU  ( 2022-04-28 10:37:53 -0500 )edit

You went from "it works" to "no it doesn't". I'd be happy to help you, but has anything changed? Do you still get the same error, or a different one? Or does the package simply not do what you expect.

The more information you give, the easier it will be to help.

Joe28965 gravatar image Joe28965  ( 2022-04-29 01:27:52 -0500 )edit

I still have same error. It was just my mistake. I thought that I did as you said, but I launch another file then I thought it works. After that I found my mistake then launch right file then it still doesn't work.

AN JONGSU gravatar image AN JONGSU  ( 2022-04-29 11:26:50 -0500 )edit

Do you have the same error, or do you have another error?

Joe28965 gravatar image Joe28965  ( 2022-05-02 01:31:29 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2022-04-27 06:12:04 -0500

Seen: 57 times

Last updated: Apr 28