Ask Your Question

allenh1's profile - activity

2019-10-02 23:38:17 -0500 received badge  Self-Learner (source)
2019-10-02 21:36:38 -0500 received badge  Famous Question (source)
2019-10-02 19:31:33 -0500 received badge  Notable Question (source)
2019-10-02 09:22:04 -0500 answered a question Restrict ROS 2 to Localhost

Okay, so there's a way to do this it seems. For fastRTPS, you can use the following for DEFAULT_FASTRTPS_PROFILES.xml, a

2019-09-30 11:04:44 -0500 received badge  Popular Question (source)
2019-09-23 10:18:41 -0500 commented question Restrict ROS 2 to Localhost

Sorry, @MCornelis, I think I could have been more clear in my wording... I'm not referring to intra-process communicatio

2019-09-23 08:58:00 -0500 asked a question Restrict ROS 2 to Localhost

Restrict ROS 2 to Localhost I'm wondering if anybody has a method to restrict ROS 2 to use only the localhost for commun

2019-08-18 21:24:30 -0500 received badge  Notable Question (source)
2019-08-15 13:02:43 -0500 marked best answer ROS 2 Admin Privileges on Windows 10

I'm wondering why Windows 10 needs administrator privileges to build and run ROS 2, and if this could be changed with a patch?

To build ROS 2 you will need a Visual Studio Command Prompt (“x64 Native Tools Command Prompt for VS 2019”) running as Administrator.

This is detailed in the build settings, but it doesn't link to an explanation of why.

Note that the first time you run any executable you will have to allow access to the network through a Windows Firewall popup.

This, also from the build guide, is my best guess as to why, but I'm asking because I'm not sure.

2019-08-14 02:13:06 -0500 marked best answer Problems Building from Source

Hello everyone! I'm trying to build Jade from source, and I have run into a problem, likely python related. It builds several packages successfully, then fails at python_orocos_kdl:

<== Finished processing package [37 of 223]: 'pr2_description'

==> Processing plain cmake package: 'python_orocos_kdl'
==> Building with env: '/opt/ros/jade/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/allenh1/catkin_ws/build_isolated/python_orocos_kdl/install'
==> make -j8 -l8 in '/home/allenh1/catkin_ws/build_isolated/python_orocos_kdl/install'
[ 11%] Building CXX object CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart7.o
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip: In function ‘int convertTo_std_string(PyObject*, void**, int*, PyObject*)’:
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:41:37: error: ‘PyString_Check’ was not declared in this scope
         return (PyString_Check(sipPy) || PyUnicode_Check(sipPy));
                                     ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:48:58: error: ‘PyString_AS_STRING’ was not declared in this scope
         *sipCppPtr = new std::string(PyString_AS_STRING(s));
                                                          ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:52:30: error: ‘PyString_Check’ was not declared in this scope
      if (PyString_Check(sipPy)) {
                              ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:53:62: error: ‘PyString_AS_STRING’ was not declared in this scope
         *sipCppPtr = new std::string(PyString_AS_STRING(sipPy));
                                                              ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip: In function ‘PyObject* convertFrom_std_string(void*, PyObject*)’:
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:30:56: error: ‘PyString_FromString’ was not declared in this scope
         newstring = PyString_FromString(sipCpp->c_str());
                                                        ^
CMakeFiles/python_module_PyKDL.dir/build.make:243: recipe for target 'CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart7.o' failed
make[2]: *** [CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart7.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/python_module_PyKDL.dir/all' failed
make[1]: *** [CMakeFiles/python_module_PyKDL.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'python_orocos_kdl': 
  Command '['/opt/ros/jade/env.sh', 'make', '-j8', '-l8']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/allenh1/catkin_ws/build_isolated/python_orocos_kdl && /opt/ros/jade/env.sh make -j8 -l8

Command failed, exiting.

I am building with the following command.

$ sudo PYTHONPATH="/opt/ros/jade/lib64/python3.3/site-packages/" ./src/catkin/bin/catkin_make_isolated --install --install-space /opt/ros/jade -DSETUPTOOLS_DEB_LAYOUT=OFF

No packages can build, for some reason, unless I explicitly add the PYTHONPATH variable as seen above. Any suggestions as to how I can get this working?

Thanks in advance.


Update: I have roscore up and running!

image description

I was even able to build something I wrote in Qt for controlling a robot.

image description

But I cannot do anything else until I get the rest to build... I'm creating a Gentoo install guide for Jade.

2019-08-14 02:13:06 -0500 received badge  Self-Learner (source)
2019-08-13 14:34:34 -0500 received badge  Popular Question (source)
2019-08-12 12:17:47 -0500 asked a question ROS 2 Admin Privileges on Windows 10

ROS 2 Admin Privileges on Windows 10 I'm wondering why Windows 10 needs administrator privileges to build and run ROS 2,

2019-08-01 10:42:07 -0500 received badge  Nice Answer (source)
2019-07-31 16:32:03 -0500 commented question ros2 dashing FastRTPS comms failing between two computers

Have you set ROS_DOMAIN_ID?

2019-07-31 16:28:38 -0500 answered a question Using the MySQL database in ROS

In the post you reference, they explicitly find MySQL. find_package(MySqlClient REQUIRED) include_directories(${MYSQL_

2019-07-31 16:28:38 -0500 received badge  Rapid Responder (source)
2019-07-10 10:59:29 -0500 commented question no map received, gmapping, velodyne hdl_32

@nunuwin I'm not seeing the photo you tried to upload... Looks like you uploaded a path to it?

2019-07-01 10:46:14 -0500 edited question Error for catkin_make

Error for catkin_make When running catkin_make from the Hector SLAM ROS with the RPLidar A1. collect2: error: ld return

2019-07-01 10:44:07 -0500 commented question no map received, gmapping, velodyne hdl_32

@nunuwin you need some karma to post images (I'll upvote your question so you can have some karma to do so). As for you

2019-07-01 10:40:57 -0500 received badge  Rapid Responder (source)
2019-07-01 10:40:57 -0500 answered a question fixed frame no tf data

In the RVIZ window you should see the following when you click on "Fixed Frame" under "Global Options". Fixed Frame

2019-06-14 12:18:21 -0500 commented question How to get all position in a map (SLAM) for robot to go to?

@Usui this problem is actually quite complicated. There's a number of papers on the topic here. After a skimming, this o

2019-06-13 07:49:03 -0500 received badge  Great Answer (source)
2019-06-13 07:49:03 -0500 received badge  Guru (source)
2019-06-11 14:58:22 -0500 commented question no map received, gmapping, velodyne hdl_32

We're going to need more info here. While I don't know your particular laser, most velodyne (that I know of) are 3D lase

2019-06-10 15:06:26 -0500 commented question How to get all position in a map (SLAM) for robot to go to?

@Usui yes, they will be very small. By defualt, I believe it's around 0.05 m / pixel (though it should say in your yaml

2019-06-10 12:24:04 -0500 commented question How to get all position in a map (SLAM) for robot to go to?

indx is an array element, so it cannot be -1. I can't speak for the 100 bound, since I don't know the dimensions of the

2019-06-10 10:54:15 -0500 commented question How to get all position in a map (SLAM) for robot to go to?

Then you need to scale and find the origin. At that point, it's not too hard to iterate and check for occupancy.

2019-06-10 10:53:37 -0500 commented question How to get all position in a map (SLAM) for robot to go to?

@Usui yes -- data[] is an array of size width * height. You just need to convert an index to (x, y). Given an (x, y), yo

2019-06-03 15:58:33 -0500 commented question help with matrix covariance

Do you have an exact model of IMU that you are using? That's going to be helpful in answering this. Those covariance va

2019-06-03 15:40:42 -0500 commented question How to get all position in a map (SLAM) for robot to go to?

Could I use occupancy? Probably? I would say that depends on how good your map is. But that's disregarding any sens

2019-05-31 15:03:13 -0500 commented question Is it possible to define a custom array type in ROS2?

Have you considered making the two nodes run on separate threads, then just communicating between them directly? Otherwi

2019-05-30 09:59:34 -0500 received badge  Civic Duty (source)
2019-05-08 11:31:34 -0500 commented answer Navigation p3dx

Please refrain from answering your own question with a question in the future. ;) That said, adding more information to

2019-05-03 09:51:23 -0500 commented question mapping cant update in rviz

That's likely the issue, yes. Where is your odometry getting input into GMapping? If you don't have odometry, you'll nee

2019-05-03 09:49:49 -0500 commented question Attempt to unlock mutex that was not locked in melodic

Seems like a concurrency problem. We're going to need more information, however. Can you please tell us how to reproduce

2019-05-02 12:49:50 -0500 commented answer what versions of ROS can I run on Ubuntu 18.04 (i386)?

For completeness (if someone was looking at this for 32 bit installations), there's been success in using a Gentoo prefi

2019-04-29 16:43:48 -0500 commented question how to connect to robot and run a node in a new terminal

Have you tried writing a .launch file? I feel like that's the solution for you here.

2019-04-29 16:41:48 -0500 answered a question ros2 crystal tutorial gtest message and service testing

If I'm understanding your question correctly, it sounds like you should look at the test_communication package in ROS 2

2019-04-25 15:25:57 -0500 commented question ROS and Open Vino

I'm not sure what you mean by "ignored" here... If you mean "not installed" then no, you probably need them.

2019-04-25 09:04:55 -0500 commented question ROS and Open Vino

@rukie Depending on what ros distro you are using (and also which packages you are using), you can potentially use Pytho

2019-04-24 09:35:11 -0500 edited answer Tuning Gmapping Parameters or Alternative SLAM Algorithm

You could try Cartographer out, if you wanted. I made a decent map with this lua file. -- Copyright 2016 The Cartograph

2019-04-24 09:32:22 -0500 answered a question Tuning Gmapping Parameters or Alternative SLAM Algorithm

You could try Cartographer out, if you wanted. I made a decent map with this lua file. -- Copyright 2016 The Cartograph

2019-04-24 09:27:11 -0500 commented question Tuning Gmapping Parameters or Alternative SLAM Algorithm

@samialperen that looks really good to me, actually. My results were not much better, and, to be frank, that's about as

2019-04-23 10:41:00 -0500 commented question Unexplainable double free or corruption

Can we see the output of your node when you pass --cmake-args -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=add

2019-04-23 10:17:48 -0500 commented question Tuning Gmapping Parameters or Alternative SLAM Algorithm

Playing it back locally, it seemed that the tf frames were lining up pretty well (if you increase fade time and rotate,

2019-04-11 13:21:43 -0500 edited question ros2_ws build fail

ros2_ws build fail Operating System: Installation type: Client library (if applicable): rosidl_generator_c Ste

2019-03-26 11:21:30 -0500 commented question ros blender bridge

That package seems to not have been touched in five years. Looks really interesting, though! Has anybody claimed to have

2019-03-21 14:44:41 -0500 edited question Doesn't get robots /scan events

Doesn't get robots /scan events I'm trying to get robot /scan events notification. This works for me: // Subscribe to