/opt/ros/kinetic/lib/gazebo_ros/debug: 5: [: Linux: unexpected operator

asked 2018-11-09 02:48:24 -0500

GLV gravatar image

updated 2018-11-09 02:49:18 -0500

When I am launching my model I am getting the following error:

glv@VaraPrasad:~/catkin_ws$ roslaunch my_mobilebot my_mobilebot.launch
... logging to /home/glv/.ros/log/d607c60a-e3f6-11e8-ae2d-9829a64aa0d2/roslaunch-VaraPrasad-1347.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://VaraPrasad:34401/

SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/debug)
    gazebo_gui (gazebo_ros/gzclient)

auto-starting new master
process[master]: started with pid [1357]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to d607c60a-e3f6-11e8-ae2d-9829a64aa0d2
process[rosout-1]: started with pid [1374]
started core service [/rosout]
process[gazebo-2]: started with pid [1382]
/opt/ros/kinetic/lib/gazebo_ros/debug: 5: [: Linux: unexpected operator
process[gazebo_gui-3]: started with pid [1399]
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".

Type "apropos word" to search for commands related to "word"...
Reading symbols from gzserver...(no debugging symbols found)...done.
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[ INFO] [1541750994.532718810]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1541750994.534274778]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[New Thread 0x7fffceb98700 (LWP 1493)]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]

[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[New Thread 0x7fffca683700 (LWP 1494)]
[New Thread 0x7fffc9e82700 (LWP 1495)]
[New Thread 0x7fffc9681700 (LWP 1498)]
[New Thread 0x7fffc8e80700 (LWP 1499)]
[New Thread 0x7fffc3fff700 (LWP 1501)]
[New Thread 0x7fffc37fe700 (LWP 1513)]
[New Thread 0x7fffc2ffd700 (LWP 1514)]
[New Thread 0x7fffc27fc700 (LWP 1515)]
[New Thread 0x7fffc1ffb700 (LWP 1516)]

[New Thread 0x7fffc17fa700 (LWP 1519)]
[New Thread 0x7fffc0ff9700 (LWP 1520)]
[New Thread 0x7fffabfff700 (LWP 1521)]
[New Thread 0x7fffab7fe700 (LWP 1522)]
[New Thread 0x7fffaaffd700 (LWP 1523)]
[New Thread 0x7fffaa7fc700 (LWP 1524)]
[New Thread 0x7fffa9ffb700 (LWP 1525)]
[ INFO] [1541750996.963564299]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1541750996.965872363]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[New Thread 0x7fffa97fa700 (LWP 1527)]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]


  [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
    [

tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[New Thread 0x7fff7ffff700 (LWP 1528)]
[New Thread 0x7fff7f7fe700 ...
(more)
edit retag flag offensive close merge delete

Comments

1

The following could be related: ros-simulation/gazebo_ros_pkgs#823.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-09 05:07:18 -0500 )edit

Thanks Mr.gvdhoorn but I don't understand what I want change in my bash file

GLV gravatar image GLV  ( 2018-11-09 08:22:29 -0500 )edit
1

Well, the diff is here. But afaik those changes would already have been released in the current version of gazebo_ros_pkg. What is the output of dpkg -l | grep gazebo-ros-pkg on your machine?

gvdhoorn gravatar image gvdhoorn  ( 2018-11-09 08:40:41 -0500 )edit

glv@VaraPrasad:~$ dpkg -l | grep gazebo-ros-pkg

ii ros-kinetic-gazebo-ros-pkgs 2.5.17-0xenial-20181005-181452-0800 amd64 Interface for using ROS with the Gazebo simulator.

GLV gravatar image GLV  ( 2018-11-09 20:38:50 -0500 )edit

Thank you so much Mr.gvdhoorn. Your solution is worked for me!!!

GLV gravatar image GLV  ( 2018-11-09 20:40:59 -0500 )edit

Which solution? Did you edit the file in /opt/ros/kinetic/lib/gazebo_ros/debug? That is not how this should be approached.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-10 01:27:27 -0500 )edit

I replaced this line

**if [ $(uname) == "Darwin" ]; then** with **if [ $(uname) = "Darwin" ]; then**

then it's worked I don't get any error!!

GLV gravatar image GLV  ( 2018-11-10 02:55:22 -0500 )edit

Yes, so did you do this in the file in /opt/ros/kinetic/..? Cause editing files in system locations (ie: managed by apt) is not generally recommended.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-10 06:03:36 -0500 )edit