ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rospack profile crash

asked 2019-02-13 09:11:25 -0500

B Dhruva gravatar image

updated 2019-02-14 05:57:54 -0500

Dear Team,

I am using Jackal robot from clearpath with ros indigo. I have brought um7 IMU to connect with Robot(Jackal) and trying to get IMU data. I installed um7 package using sudo get-apt install ros-indigo-um7 while performing rosrun um7 um7_driver getting following error:

administrator@administrator:~$ rosrun um7 um7_driver
terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid
find: cannot search `': No such file or directory
terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid
Aborted (core dumped)

performed rospack profile and got following error

terminate called after throwing an instance of 'std::run time error' what() locale::facet ::_S_create_c_locale name not valid
Aborted (core dumped)

output of ls -al /opt/ros/indigo/lib/um7

administrator@administrator:~$ ls -al /opt/ros/indigo/lib/um7
total 124
drwxr-xr-x  2 root root   4096 Feb 11 05:32 .
drwxr-xr-x 56 root root  12288 Feb 12 07:15 ..
-rwxr-xr-x  1 root root 109720 May 17  2018 um7_driver

Information regarding OS:

administrator@administrator:~$ cat /etc/os-release
 NAME="Ubuntu"
 VERSION="14.04.5 LTS, Trusty Tahr"
 ID=ubuntu
 ID_LIKE=debian
 PRETTY_NAME="Ubuntu 14.04.5 LTS"
 VERSION_ID="14.04"
 HOME_URL="http://www.ubuntu.com/"
 SUPPORT_URL="http://help.ubuntu.com/"
 BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

Other required information

administrator@administrator:~$ whoami

 administrator

administrator@administrator:~$ id

uid=1000(administrator) gid=1000(administrator) groups=1000(administrator),20(dialout),27(sudo),30(dip),46(plugdev),102(netdev)

administrator@administrator:~$ id -u

1000

administrator@administrator:~$ id -g

1000

administrator@administrator:~$ env | grep LC

 LC_PAPER=de_DE.UTF-8

 LC_ADDRESS=de_DE.UTF-8

 LC_MONETARY=de_DE.UTF-8

 LC_NUMERIC=de_DE.UTF-8

 LC_TELEPHONE=de_DE.UTF-8

 LC_IDENTIFICATION=de_DE.UTF-8

 LC_MEASUREMENT=de_DE.UTF-8

 LC_TIME=de_DE.UTF-8

 LC_NAME=de_DE.UTF-8

ROS version information:

administrator@administrator:~$ rosversion -d
  indigo

Problem is I am not able to run um7_driver binary. ROS is not able to find the um7 package. I am new to ROS and not able to figure it out what is going wrong. As mentioned by @gvdhoorn it seems to be rospack profile crash issue. Any pointer to the issue would be helpful

Thank you in advance

edit retag flag offensive close merge delete

Comments

no file or directory found.

That is not an error I recognise. Can you please copy-paste the exact error message into your question?

gvdhoorn gravatar image gvdhoorn  ( 2019-02-13 09:16:14 -0500 )edit

Error updated

B Dhruva gravatar image B Dhruva  ( 2019-02-13 09:25:25 -0500 )edit

So this is an entirely different error than the one in #q251946 that you commented on.

I would surprised if you could run any node with rosrun.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-13 09:27:47 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-02-15 07:43:29 -0500

B Dhruva gravatar image

updated 2019-02-15 07:49:47 -0500

gvdhoorn gravatar image

Problem is resolved(work-around). need to add package name and driver into accessories.launch file:

cd /etc/ros/indigo/ros.d/accessories.launch

add line after </group> and before </launch>

<node pkg="um7" name="um7_driver" type="um7_driver" />
edit flag offensive delete link more

Comments

That does not sound like an actual solution, but more a work-around.

It will launch the new node, but what is the solution to the locale error?

gvdhoorn gravatar image gvdhoorn  ( 2019-02-15 07:44:50 -0500 )edit

I am not able to find solution to locale error

B Dhruva gravatar image B Dhruva  ( 2019-02-15 07:46:53 -0500 )edit

Well, as long as you're happy about being able to run that one node, it's fine with me.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-15 07:50:14 -0500 )edit
0

answered 2019-02-13 09:31:26 -0500

gvdhoorn gravatar image

updated 2019-02-14 02:36:56 -0500

This most likely has nothing to do with rospack or um7, but with misconfigured locales.

According to this page and this SO post, the following commands in a terminal should fix it on Ubuntu:

$ export DEBIAN_FRONTEND=noninteractive
$ sudo apt-get install locales
$ sudo sh -c "echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen"
$ sudo locale-gen

Alternatively: review your locale settings and regenerate the appropriate ones using whatever commands are suitable for your Linux distribution and platform.

Note: be sure to use an appropriate locale string for your language / region. If you're ok with US English (and regional settings), then en_US.UTF-8 should work.


Edit: can you show us the output of whoami and id -u and id -g?


Edit2: just noticed this:

I am using Jackal robot from clearpath with os indigo.

have you taken this up with Clearpath? This might be a known issue.

Also: what is the output of env | grep LC?

edit flag offensive delete link more

Comments

I tried the same command . Still same error. Can you let me know how to check locale settings? I am not able to run any binary nodes using rosrun

sudo apt-get install locales:

Reading package lists... Done Building dependency tree
Reading state information... Done locales is already the new

sudo locale-gen Generating locales... en_AG.UTF-8... up-to-date en_AU.UTF-8... up-to-date en_BW.UTF-8... up-to-date en_CA.UTF-8... up-to-date en_DK.UTF-8... up-to-date en_GB.UTF-8... up-to-date en_HK.UTF-8... up-to-date en_IE.UTF-8... up-to-date en_IN.UTF-8... up-to-date en_NG.UTF-8... up-to-date en_NZ.UTF-8... up-to-date en_PH.UTF-8... up-to-date en_SG.UTF-8... up-to-date en_US.UTF-8... up-to-date en_ZA.UTF-8... up-to-date en_ZM.UTF-8... up-to-date en_ZW.UTF-8... up-to-date Generation complete.

B Dhruva gravatar image B Dhruva  ( 2019-02-13 09:44:10 -0500 )edit

I tried the same command .

which command?

Please be specific. We cannot help you otherwise.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-13 09:45:06 -0500 )edit

Also: this is not actually a real ROS problem, and I would expect you'd have trouble with other programs that use locale settings as well. What OS are you running? On which platform?

gvdhoorn gravatar image gvdhoorn  ( 2019-02-13 09:46:24 -0500 )edit

Update the question with output of env | grep LC Yes I am contacted to clearpath and waiting for their reply

B Dhruva gravatar image B Dhruva  ( 2019-02-14 03:02:34 -0500 )edit

Can you let me know what might be the problem?which other program might be creating the problem?

B Dhruva gravatar image B Dhruva  ( 2019-02-15 04:48:03 -0500 )edit

I wouldn't know right now.

I'd also want to wait a bit to give Clearpath support a chance to get back to you.

And just curious: but does any software (including the ROS software from Clearpath) run on that setup?

gvdhoorn gravatar image gvdhoorn  ( 2019-02-15 04:49:51 -0500 )edit

Problem is resolved. need to add package name and driver into accessories.launch file:

cd /etc/ros/indigo/ros.d/accessories.launch

add line after </group> and before </launch>

< node pkg="um7" name="um7_driver" type="um7_driver" />

B Dhruva gravatar image B Dhruva  ( 2019-02-15 07:42:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-02-13 09:11:25 -0500

Seen: 647 times

Last updated: Feb 15 '19