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

Horse-man's profile - activity

2020-01-10 05:17:18 -0500 received badge  Famous Question (source)
2020-01-10 05:17:18 -0500 received badge  Notable Question (source)
2020-01-10 05:17:18 -0500 received badge  Popular Question (source)
2019-08-31 09:28:24 -0500 commented answer ROS1 on Windows using WSL? or on pure Windows

With pure windows you have access to cameras, sensors and any hardware, GPU support and even communicate with Arduino bo

2019-08-30 19:22:20 -0500 edited answer ROS1 on Windows using WSL? or on pure Windows

I used both ROS Melodic and Kinetic on WSL and there's a couple of problems: WSL don't support access to hardware unti

2019-08-30 19:13:09 -0500 asked a question WSL: Gazebo frozen on loading with black screen

WSL: Gazebo frozen on loading with black screen Hi, I'm using ROS Kinetic on WSL with Ubuntu 16.04. I tried to run seve

2019-08-30 17:48:26 -0500 commented answer Gazebo crashes when spawning a robot with urdf.

This worked for me with ROS Melodic on Ubuntu 18.04

2019-08-30 17:08:54 -0500 answered a question ROS1 on Windows using WSL? or on pure Windows

I used both ROS Melodic and Kinetic on WSL and there's a couple of problems: WSL don't support access to hardware unti

2019-08-30 17:08:54 -0500 received badge  Rapid Responder (source)
2019-08-30 16:59:47 -0500 commented question Win10/WSL: gazebo black won't open enviroment

same issue here with the same configuration

2019-08-30 09:55:29 -0500 received badge  Critic (source)
2019-05-20 02:28:26 -0500 received badge  Enlightened (source)
2019-05-20 02:28:26 -0500 received badge  Guru (source)
2019-05-16 07:15:47 -0500 received badge  Great Answer (source)
2018-03-11 08:05:42 -0500 received badge  Good Answer (source)
2018-02-02 02:29:56 -0500 received badge  Nice Answer (source)
2017-11-30 02:13:17 -0500 received badge  Famous Question (source)
2017-11-19 16:08:44 -0500 received badge  Necromancer (source)
2017-10-06 01:25:29 -0500 received badge  Necromancer (source)
2017-08-18 12:08:59 -0500 received badge  Notable Question (source)
2017-08-17 06:39:51 -0500 answered a question catkin cmake error with ros (error code 1)

I solved this problem using: pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools

2017-08-17 06:32:07 -0500 edited answer catkin_make fails with "Invalid package manifest"

I had this problem too, because rosdep and rosinstall packages in conda are old. I solved this by installing them using

2017-08-17 06:31:29 -0500 answered a question catkin_make fails with "Invalid package manifest"

I had this problem too, because rosdep and rosinstall packages in conda are old. I solved this by installing them using

2017-08-16 10:10:42 -0500 received badge  Popular Question (source)
2017-08-16 07:37:01 -0500 marked best answer [kinetic] joint_state_publisher doesn't run

Hi,

I have a problem while lunching joint_state_publisher with any urdf file in ROS Kinetic and ubuntu 16.04

it crashes due to a missing library, I made sure that the library exists and is included in the path, but still the same problem

Here's the console output when I try to lunch the rrbot example:

$ roslaunch rrbot_description rrbot_rviz.launch
... logging to /home/amine/.ros/log/4d3d7f60-81f3-11e7-b988-303a643c719d/roslaunch-Destructor-26505.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://Destructor:37085/

SUMMARY
========

PARAMETERS
 * /joint_state_publisher/use_gui: True
 * /robot_description: <?xml version="1....
 * /rosdistro: kinetic
 * /rosversion: 1.12.7

NODES
  /
    joint_state_publisher (joint_state_publisher/joint_state_publisher)
    robot_state_publisher (robot_state_publisher/state_publisher)
    rviz (rviz/rviz)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[joint_state_publisher-1]: started with pid [26526]
process[robot_state_publisher-2]: started with pid [26527]
process[rviz-3]: started with pid [26528]
This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem.
[joint_state_publisher-1] process has died [pid 26526, exit code -6, cmd /home/amine/catkin_ws/src/joint_state_publisher/joint_state_publisher/joint_state_publisher __name:=joint_state_publisher __log:=/home/amine/.ros/log/4d3d7f60-81f3-11e7-b988-303a643c719d/joint_state_publisher-1.log].
log file: /home/amine/.ros/log/4d3d7f60-81f3-11e7-b988-303a643c719d/joint_state_publisher-1*.log

Here is the output of roswtf:

$ roswtf
Loaded plugin tf.tfwtf
No package or stack in context
================================================================================
Static checks summary:

No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take awhile...
analyzing graph...
... done analyzing graph
running graph rules...
ERROR: connection refused to [http://Destructor:46872/]
... done running graph rules
running tf checks, this will take a second...
... tf checks complete

Online checks summary:

Found 3 warning(s).
Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:
 * /joint_state_publisher:
   * /clock
 * /robot_state_publisher:
   * /joint_states
   * /clock
 * /rviz:
   * /rrbot/laser/scan
   * /clock

WARNING These nodes have died:
 * joint_state_publisher-1

WARNING No tf messages

Found 4 error(s).

ERROR /use_simtime is set but no publisher of /clock is present
ERROR Could not contact the following nodes:
 * /joint_state_publisher

ERROR The following nodes should be connected but aren't:
 * /joint_state_publisher->/rosout (/rosout)

ERROR Errors connecting to the following services:
 * service [/joint_state_publisher/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/joint_state_publisher/set_logger_level], address [rosrpc://Destructor:36562]
 * service [/joint_state_publisher/get_loggers] appears to be malfunctioning: Unable to communicate with service [/joint_state_publisher/get_loggers], address [rosrpc://Destructor:36562]

It seems clear that it's crashing due to missing xcb plugin,

I made sure libxcb.so and libXi.so are available in the path, I also made sur the variables QT_PLUGINS_PATH and QT_QPA_PLATFORM_PLUGIN_PATH are pointing to the correct path, and still the same problem.

I'm using:

ubuntu 16.04 
conda 4.3.23 (64-bits)
python 2.7
qt 5.6.2 (installed using anaconda)
libxcb-1.12-1

I also installed Qt 5.7 but it's still not working

Any ideas to help?

2017-08-16 07:36:35 -0500 answered a question [kinetic] joint_state_publisher doesn't run

The problem was caused by a problem in the source package of Qt in anaconda. I solved the problem by removing the conda

2017-08-16 06:10:41 -0500 commented question [kinetic] joint_state_publisher doesn't run

I got the same problem with the built-in Python of ubuntu, because 'pyqt' was installed in the pkg folder of anaconda. S

2017-08-15 16:52:23 -0500 asked a question [kinetic] joint_state_publisher doesn't run

[kinetic] joint_state_publisher doesn't run Hi, I have a problem while lunching joint_state_publisher with any urdf fi

2017-04-07 07:22:58 -0500 received badge  Famous Question (source)
2016-11-28 10:49:17 -0500 received badge  Famous Question (source)
2016-08-07 23:56:20 -0500 answered a question ROS Concept

Basically,

The publishers will publish their messages in the topics (a Topic can be seen as a Facebook Page)

The subscribers (Facebook Page Followers) can read the status of the publishers by reading information directly from the topics (so they connect to Facebook Pages of the publisher directly and read the status)

If the topic is shutdown, the subscribers can't read the messages (in other words if the publisher desactivate his Facebook Page, you will not be able read the messages, even if the Facebook Server which is the ROS Master is still running).

But, when you connect to the Facebook Page of the publisher, he don't know that you're reading his status. And we assume that you can not write a comment. So, There's not direct communication between you (the subscriber) and the publisher, because the communication in one-way only.

In other words, the publisher writes messages in the topic, the subscriber reads the messages from the topic. And no one cares about the location of the other or his address.

But all of this is just an abstraction: in the low level communication of the machine, the nodes need to know all the network information the nodes to communicate between them. But, the subscribers don't want to bother themselves with the IP adresses and ports, and that's why, they contact the ROS Master which will redirect the messages to the correct node.

2016-08-04 15:36:26 -0500 received badge  Nice Answer (source)
2016-08-03 01:38:33 -0500 answered a question Ros subscriber

It will simply create a ROS message, fill it with a text and print it. Here's the line by line explanation:

std_msgs::String msg;  // create a standard message object of type String (used to send messages between ROS services / nodes / programs)

std::stringstream ss;  // create a stringstream object which will store our text and take care of other operations on strings 

ss << "hello world " << count;  // fill the stringsream object with text "Hello world X". X represent the iteration number which was previously stored in "count" variable 

msg.data = ss.str();  // fill the data field of our ROS message with the text we previously stored in the stringstream object (you can see the stringstream object as a buffer where we store text) 

ROS_INFO("%s", msg.data.c_str()); // print the content of the ROS message in the console and save it in the log file
2016-08-02 08:00:46 -0500 commented answer usb_cam package and head_camera.yaml missing

I see. I submitted an issue in their repository once asking them to fix the compatibility with Kinetic, but they didn't fix anything.

2016-08-01 01:12:13 -0500 commented answer usb_cam package and head_camera.yaml missing

Hi! no need for downgrading, usb_cam hadn't been added to ROS Kinetic repositories yet, but you can install it from source by following the step-by-step commands as described here.

2016-06-25 21:01:45 -0500 received badge  Notable Question (source)
2016-06-01 08:42:48 -0500 received badge  Self-Learner (source)
2016-05-31 22:52:08 -0500 commented answer Problems building RosAria: errors with rosdep install libaria, and generating BumperState.msg code (em.Interpreter attribute not found in genmsg)

Yes of course you can change the title. I reported the problem here, but I didn't dig deeper in genmsg code

2016-05-31 15:50:49 -0500 received badge  Famous Question (source)
2016-05-30 01:59:36 -0500 marked best answer Problems building RosAria: errors with rosdep install libaria, and generating BumperState.msg code (em.Interpreter attribute not found in genmsg)

Hello,

When trying to install RosAria in Kinetic Kame using

rosdep install rosaria

I got this error:

rosaria: No definition of [libaria] for OS version [xenial]

It seems, that RosAria team have not yet released the binaries for Ubuntu 16.04.

I tried instead to install from source, but, when I call catkin_make, I get the following message:

    Base path: /home/amine/catkin_ws Source space: /home/amine/catkin_ws/src Build space: /home/amine/catkin_ws/build Devel space: /home/amine/catkin_ws/devel Install space: /home/amine/catkin_ws/install
    ####
    #### 
Running command: "make cmake_check_build_system" in "/home/amine/catkin_ws/build"
    ####
    ####
    #### 
Running command: "make -j8 -l8" in "/home/amine/catkin_ws/build"
    #### 
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_lisp 
[  0%] Built target geometry_msgs_generate_messages_nodejs 
[  0%] Built target std_msgs_generate_messages_py 
[  0%] Built target std_msgs_generate_messages_eus 
[  0%] Built target geometry_msgs_generate_messages_py 
[  0%] Built target geometry_msgs_generate_messages_eus 
[  0%] Built target _rosaria_generate_messages_check_deps_BumperState 
[  0%] Built target std_msgs_generate_messages_lisp 
[  0%] Built target std_msgs_generate_messages_cpp
[  9%] Built target rosaria_gencfg 
[  9%] Built target geometry_msgs_generate_messages_cpp 
[ 18%] Built target rosaria_generate_messages_nodejs 
[ 36%] Built target rosaria_generate_messages_py 
[ 54%] Built target rosaria_generate_messages_eus 
[ 63%] Built target rosaria_generate_messages_lisp 
[ 72%] Generating C++ code from rosaria/BumperState.msg Traceback (most recent call last):   File "/opt/ros/kinetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 49, in <module>
        srv_template_map)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 212, in generate_from_command_line_options
        generate_from_file(argv[1], options.package, options.outdir, options.emdir, options.includepath, msg_template_dict, srv_template_dict)  File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 153, in generate_from_file
        _generate_msg_from_file(input_file, output_dir, template_dir, search_path, package_name, msg_template_dict)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 98, in _generate_msg_from_file
        search_path)   File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 76, in _generate_from_spec
        interpreter = em.Interpreter(output=ofile, globals=g, options={em.RAW_OPT:True,em.BUFFERED_OPT:True}) AttributeError: 'module' object has no attribute 'Interpreter' rosaria/CMakeFiles/rosaria_generate_messages_cpp.dir/build.make:63: recipe for target '/home/amine/catkin_ws/devel/include/rosaria/BumperState.h' failed make[2]: *** [/home/amine/catkin_ws/devel/include/rosaria/BumperState.h] Error 1 make[2]: *** Deleting file '/home/amine/catkin_ws/devel/include/rosaria/BumperState.h' CMakeFiles/Makefile2:2756: recipe for target 'rosaria/CMakeFiles/rosaria_generate_messages_cpp.dir/all' failed make[1]: *** [rosaria/CMakeFiles/rosaria_generate_messages_cpp.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j8 -l8" failed

EDIT: python --version

Python 2.7.11 :: Anaconda 4.0.0 (64-bit)

2016-05-30 01:59:25 -0500 answered a question Problems building RosAria: errors with rosdep install libaria, and generating BumperState.msg code (em.Interpreter attribute not found in genmsg)

Ok,

So finally, it was a conflict in python packages, it seems that both em and empy builds a package with the same name. So I just solved it by replacing em by empy:

pip uninstall em

pip install empy

Then I installed RosAria using the standard steps in the official RosAria documentation

2016-05-30 01:40:55 -0500 commented answer Problems building RosAria: errors with rosdep install libaria, and generating BumperState.msg code (em.Interpreter attribute not found in genmsg)

@ReedHedges updating genmsg and other packages didn't solve the problem, I even tried to reinstall ROS from source, and the problem with RosAria was the same @daniel_dsouza the problem looks similar, but even when I tried your steps, it was the same error when building catkin