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

martinakos's profile - activity

2020-09-15 03:33:46 -0500 received badge  Famous Question (source)
2020-07-05 19:30:20 -0500 received badge  Famous Question (source)
2020-07-05 19:30:20 -0500 received badge  Notable Question (source)
2020-05-28 04:57:44 -0500 commented question Docker with rqt problem with black dialog/menu/dropdown

I came here with the same problem and QT_X11_NO_MITSHM=1 seems to solve the problem for me.

2020-04-10 14:16:51 -0500 received badge  Notable Question (source)
2020-02-26 03:55:10 -0500 marked best answer How to execute python scripts in their source folder when using colcon?

I've just started using colcon to build a bunch of ROS packages, mixed python/C++.

colcon moves the built packages to the install folder, including the python files. After sourcing install/setup.bash I can roslaunch my python nodes. However, the python files being executed are the ones copied to the install folder, so if I want to attach a debbuger to the running python code I have to do it with the files copied to the install folder. This is a big problem for me, because I'm constantly changing the python code while debugging and I want to do that in the source folder, not in the install folder.

I have tried to use colcon build with --symlink-install but it still copies the python files.

Is there any way to execute the python files in the source folder?

UPDATE:

I haven't got to work --symlink-install as I would expect yet. So I'll give a bit more of detail on what I've tried so far:

first: I use Ubuntu 18.04 with ROS Melodic. the colcon version is:

colcon version-check
colcon-argcomplete 0.3.3: up-to-date
colcon-bash 0.4.2: up-to-date
colcon-cd 0.1.1: up-to-date
colcon-cmake 0.2.18: up-to-date
colcon-core 0.5.3: up-to-date
colcon-defaults 0.2.3: up-to-date
colcon-devtools 0.2.2: up-to-date
colcon-library-path 0.2.1: up-to-date
colcon-metadata 0.2.3: up-to-date
colcon-notification 0.2.12: up-to-date
colcon-output 0.2.7: up-to-date
colcon-package-information 0.3.1: up-to-date
colcon-package-selection 0.2.5: up-to-date
colcon-parallel-executor 0.2.4: up-to-date
colcon-pkg-config 0.1.0: up-to-date
colcon-powershell 0.3.6: up-to-date
colcon-python-setup-py 0.2.3: up-to-date
colcon-recursive-crawl 0.2.1: up-to-date
colcon-ros 0.3.15: up-to-date
colcon-test-result 0.3.8: up-to-date
colcon-zsh 0.4.0: up-to-date

As my python node is very short I initially tried to install it as a script: My directory structure is:

workspace
    src
        gazebo_utils
            launch
                node.launch
           meshes
           urdf
           src
                python_node.py
           CMakeList.txt
           package.xml

My CMakeLists.txt is:

cmake_minimum_required(VERSION 3.5)
project(gazebo_utils)

find_package(catkin REQUIRED)
catkin_package()
catkin_install_python(PROGRAMS
    src/python_node.py
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install( 
    DIRECTORY launch urdf meshes 
    DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

The package.xml is minimal with only catkin as buildtool_depend

I build with: colcon build --symlink-install --packages-select gazebo_utils

I source . install/setup.bash and I can roslaunch gazebo_utils node.launch successfully and the node works. However, what has been installed and is executed is:

workspace
   install
       gazebo_utils
          lib
             gazebo_utils
                python_node.py  (this is a copy not a symlink)

and my python code is a copy no a symlink.

Then I tried to put the code into a python package: I use this directory structure:

workspace
    src
        gazebo_utils
            launch
                node.launch
           meshes
           urdf
           src
                gazebo_utils
                    __init__.py
                    python_node.py
           CMakeList.txt
           package.xml   
           setup.py

__init__.py is empty

The CMakeLists.txt now is:

cmake_minimum_required(VERSION 3.5)
project(gazebo_utils)

find_package(catkin REQUIRED)
catkin_package()
catkin_python_setup()

install( 
    DIRECTORY launch urdf meshes 
    DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

and setup.py is:

from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup

# fetch values ...
(more)
2020-02-26 03:55:10 -0500 received badge  Scholar (source)
2020-02-25 10:44:40 -0500 received badge  Popular Question (source)
2020-02-25 04:22:45 -0500 edited question How to execute python scripts in their source folder when using colcon?

How to execute python scripts in their source folder when using colcon? I've just started using colcon to build a bunch

2020-02-25 04:20:57 -0500 edited question How to execute python scripts in their source folder when using colcon?

How to execute python scripts in their source folder when using colcon? I've just started using colcon to build a bunch

2020-02-25 04:17:59 -0500 edited question How to execute python scripts in their source folder when using colcon?

How to execute python scripts in their source folder when using colcon? I've just started using colcon to build a bunch

2020-02-22 08:07:06 -0500 edited question How to execute python scripts in their source folder when using colcon?

How to execute python scripts in their source folder when using colcon? I've just started using colcon to build a bunch

2020-02-20 06:53:31 -0500 commented question How to execute python scripts in their source folder when using colcon?

I see there are some symlinks in the build folder but not for my python file. In the CMakeLists for the ros package I us

2020-02-19 06:59:51 -0500 asked a question How to execute python scripts in their source folder when using colcon?

How to execute python scripts in their source folder when using colcon? I've just started using colcon to build a bunch

2019-09-19 14:16:43 -0500 received badge  Self-Learner (source)
2019-09-19 14:16:43 -0500 received badge  Teacher (source)
2019-09-19 14:11:27 -0500 received badge  Student (source)
2019-08-15 04:20:09 -0500 received badge  Popular Question (source)
2019-07-17 07:13:04 -0500 commented question moveit! motion planning reuse

thanks! I'll keep a eye that issue.

2019-07-17 05:13:54 -0500 asked a question moveit! motion planning reuse

moveit! motion planning reuse I'm using moveit!'s default RRTConnectkConfigDefault motion planner to control an arm. Is

2019-06-20 05:54:04 -0500 commented answer Rosbag: play on demand service

pub_next_msg() needs to return a response, otherwise a "service handler returned None" error occurs. I add: return Empt

2019-06-13 02:39:02 -0500 received badge  Famous Question (source)
2019-06-06 09:12:17 -0500 received badge  Notable Question (source)
2019-06-06 01:45:38 -0500 received badge  Popular Question (source)
2019-05-29 04:08:22 -0500 commented question rqt_console from terminal?

Luckily the interfering messages came from a subpackage, so I've been able to change the loging severity for that subpac

2019-05-29 04:03:35 -0500 edited question rqt_console from terminal?

rqt_console from terminal? I find difficult to read some debug log messages which have indenting structure with rqt_cons

2019-05-29 03:59:38 -0500 edited question rqt_console from terminal?

rqt_console from terminal? I find difficult to read some debug log messages which have indenting structure with rqt_cons

2019-05-29 03:59:38 -0500 received badge  Editor (source)
2019-05-29 03:59:00 -0500 edited question rqt_console from terminal?

rqt_console from terminal? I find difficult to read some debug log messages which have indenting structure with rqt_cons

2019-05-28 11:18:44 -0500 asked a question rqt_console from terminal?

rqt_console from terminal? I find difficult to read some debug log messages which have indenting structure with rqt_cons

2019-03-29 05:06:02 -0500 received badge  Popular Question (source)
2019-03-14 11:24:35 -0500 commented answer Use crystal rqt_graph 1.0 in kinetic possible?

These are the improvements in rqt_graph 1.0 https://github.com/ros-visualization/rqt_graph/pull/13

2019-03-14 11:24:22 -0500 commented answer Use crystal rqt_graph 1.0 in kinetic possible?

These are the improvement in rqt_graph 1.0 https://github.com/ros-visualization/rqt_graph/pull/13

2019-03-14 06:44:51 -0500 asked a question Use crystal rqt_graph 1.0 in kinetic possible?

Use crystal rqt_graph 1.0 in kinetic possible? I'm relatively new to ROS and I'm trying to understand a quite complex sy

2019-01-11 12:45:21 -0500 marked best answer Remove a single ROS package

I'm still trying to solve this problem in another question. I decided to uninstall camera_calibration and install it again, see if that helps. However if I try to remove the package with apt-get it also wants to remove the whole ROS! what's the correct way of removing a single package? see output below:

sudo apt-get purge ros-kinetic-camera-calibration
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaprutil1-dev libboost-all-dev libboost-date-time-dev libboost-filesystem-dev
  libboost-iostreams-dev libboost-log-dev libboost-regex-dev libboost-system-dev
  libboost-thread-dev libboost-wave-dev libegl1-mesa-dev libgazebo7-dev
  libgdk-pixbuf2.0-dev libgles2-mesa-dev libgtk2.0-dev libharfbuzz-dev
  libharfbuzz-gobject0 libinput-dev liblog4cxx-dev liblog4cxx10-dev libmirclient-dev
  libmircommon-dev libmircookie-dev libmircookie2 libmircore-dev libogre-1.9-dev
  libpango1.0-dev libpcl-dev libpyside2-dev libqt5opengl5-dev libqt5webkit5-dev
  libqt5x11extras5-dev libqt5xmlpatterns5-dev libqt5xmlpatterns5-private-dev
  libsdformat4-dev liburdfdom-dev libvtk6-qt-dev libwayland-bin libwayland-dev
  qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-private-dev
  qtmultimedia5-dev qtscript5-dev qtscript5-private-dev qttools5-dev
  qttools5-private-dev ros-kinetic-actionlib ros-kinetic-actionlib-msgs
  ros-kinetic-actionlib-tutorials ros-kinetic-bond ros-kinetic-bond-core
  ros-kinetic-bondcpp ros-kinetic-bondpy ros-kinetic-camera-calibration-parsers
  ros-kinetic-camera-info-manager ros-kinetic-class-loader ros-kinetic-collada-parser
  ros-kinetic-collada-urdf ros-kinetic-common-msgs ros-kinetic-common-tutorials
  ros-kinetic-compressed-depth-image-transport ros-kinetic-compressed-image-transport
  ros-kinetic-control-msgs ros-kinetic-cpp-common ros-kinetic-cv-bridge
  ros-kinetic-depth-image-proc ros-kinetic-desktop ros-kinetic-diagnostic-aggregator
  ros-kinetic-diagnostic-analysis ros-kinetic-diagnostic-common-diagnostics
  ros-kinetic-diagnostic-msgs ros-kinetic-diagnostic-updater ros-kinetic-diagnostics
  ros-kinetic-dynamic-reconfigure ros-kinetic-eigen-conversions
  ros-kinetic-executive-smach ros-kinetic-filters ros-kinetic-gazebo-dev
  ros-kinetic-gazebo-msgs ros-kinetic-gazebo-plugins ros-kinetic-gazebo-ros
  ros-kinetic-gazebo-ros-pkgs ros-kinetic-geometric-shapes ros-kinetic-geometry
  ros-kinetic-geometry-msgs ros-kinetic-geometry-tutorials ros-kinetic-image-common
  ros-kinetic-image-geometry ros-kinetic-image-proc ros-kinetic-image-publisher
  ros-kinetic-image-rotate ros-kinetic-image-transport
  ros-kinetic-image-transport-plugins ros-kinetic-image-view
  ros-kinetic-interactive-marker-tutorials ros-kinetic-interactive-markers
  ros-kinetic-joint-state-publisher ros-kinetic-kdl-conversions ros-kinetic-kdl-parser
  ros-kinetic-laser-assembler ros-kinetic-laser-filters ros-kinetic-laser-geometry
  ros-kinetic-laser-pipeline ros-kinetic-librviz-tutorial ros-kinetic-map-msgs
  ros-kinetic-message-filters ros-kinetic-message-runtime ros-kinetic-mk
  ros-kinetic-nav-msgs ros-kinetic-nodelet ros-kinetic-nodelet-core
  ros-kinetic-nodelet-topic-tools ros-kinetic-nodelet-tutorial-math ros-kinetic-opencv3
  ros-kinetic-pcl-conversions ros-kinetic-pcl-msgs ros-kinetic-pcl-ros
  ros-kinetic-perception-pcl ros-kinetic-pluginlib ros-kinetic-pluginlib-tutorials
  ros-kinetic-polled-camera ros-kinetic-python-qt-binding ros-kinetic-qt-dotgraph
  ros-kinetic-qt-gui ros-kinetic-qt-gui-cpp ros-kinetic-qt-gui-py-common
  ros-kinetic-random-numbers ros-kinetic-resource-retriever ros-kinetic-robot
  ros-kinetic-robot-model ros-kinetic-robot-state-publisher ros-kinetic-ros
  ros-kinetic-ros-base ros-kinetic-ros-comm ros-kinetic-ros-core
  ros-kinetic-ros-tutorials ros-kinetic-rosbag ros-kinetic-rosbag-storage
  ros-kinetic-rosbuild ros-kinetic-rosconsole ros-kinetic-rosconsole-bridge
  ros-kinetic-roscpp ros-kinetic-roscpp-core ros-kinetic-roscpp-serialization
  ros-kinetic-roscpp-traits ros-kinetic-roscpp-tutorials ros-kinetic-rosgraph-msgs
  ros-kinetic-roslaunch ros-kinetic-roslib ros-kinetic-roslisp ros-kinetic-rosmsg
  ros-kinetic-rosnode ros-kinetic-rosout ros-kinetic-rospack ros-kinetic-rospy
  ros-kinetic-rospy-tutorials ros-kinetic-rosservice ros-kinetic-rostest
  ros-kinetic-rostime ros-kinetic-rostopic ros-kinetic-rosunit ros-kinetic-roswtf
  ros-kinetic-rqt-action ros-kinetic-rqt-bag ros-kinetic-rqt-bag-plugins
  ros-kinetic-rqt-common-plugins ros-kinetic-rqt-console ros-kinetic-rqt-dep
  ros-kinetic-rqt-graph ros-kinetic-rqt-gui ros-kinetic-rqt-gui-cpp
  ros-kinetic-rqt-gui-py ros-kinetic-rqt-image-view ros-kinetic-rqt-launch
  ros-kinetic-rqt-logger-level ros-kinetic-rqt-moveit ros-kinetic-rqt-msg
  ros-kinetic-rqt-nav-view ros-kinetic-rqt-plot ros-kinetic-rqt-pose-view
  ros-kinetic-rqt-publisher ros-kinetic-rqt-py-common ros-kinetic-rqt-py-console
  ros-kinetic-rqt-reconfigure ros-kinetic-rqt-robot-dashboard
  ros-kinetic-rqt-robot-monitor ros-kinetic-rqt-robot-plugins
  ros-kinetic-rqt-robot-steering ros-kinetic-rqt-runtime-monitor ros-kinetic-rqt-rviz
  ros-kinetic-rqt-service-caller ros-kinetic-rqt-shell ros-kinetic-rqt-srv
  ros-kinetic-rqt-tf-tree ros-kinetic-rqt-top ros-kinetic-rqt-topic ros-kinetic-rqt-web
  ros-kinetic-rviz ros-kinetic-rviz-plugin-tutorials ros-kinetic-rviz-python-tutorial
  ros-kinetic-self-test ros-kinetic-sensor-msgs ros-kinetic-shape-msgs
  ros-kinetic-simulators ros-kinetic-smach-msgs ros-kinetic-smach-ros ros-kinetic-stage
  ros-kinetic-stage-ros ros-kinetic-std-msgs ros-kinetic-std-srvs
  ros-kinetic-stereo-image-proc ros-kinetic-stereo-msgs ros-kinetic-tf
  ros-kinetic-tf-conversions ros-kinetic-tf2 ros-kinetic-tf2-eigen
  ros-kinetic-tf2-geometry-msgs ros-kinetic-tf2-kdl ros-kinetic-tf2-msgs
  ros-kinetic-tf2-py ros-kinetic-tf2-ros ros-kinetic-theora-image-transport
  ros-kinetic-topic-tools ros-kinetic-trajectory-msgs ros-kinetic-turtle-actionlib
  ros-kinetic-turtle-tf ros-kinetic-turtle-tf2 ros-kinetic-turtlesim ros-kinetic-urdf
  ros-kinetic-urdf-tutorial ros-kinetic-vision-opencv
  ros-kinetic-visualization-marker-tutorials ros-kinetic-visualization-msgs
  ros-kinetic-visualization-tutorials ros-kinetic-viz ros-kinetic-xacro
  ros-kinetic-xmlrpcpp
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  ros-kinetic-camera-calibration* ros-kinetic-desktop-full* ros-kinetic-image-pipeline*
  ros-kinetic-perception*
0 to upgrade, 0 to newly install, 4 to remove and 11 not to upgrade.
After this operation, 238 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
2019-01-11 12:40:10 -0500 marked best answer camera_calibration opens gui window but freezes

I'm trying to run the camera_calibration node. I run this command:

rosrun camera_calibration cameracalibrator.py --size 8x7 --square 0.023 --approximate=0.1 --no-service-check image:=/camera/color/image_raw

I see a window opening but then it freezes indefinitely. I tried to debug cameracalibrator.py and saw that the freeze occurs at the cv2.namedWindow("display", cv2.WINDOW_NORMAL) in the run() method of DisplayThread which is created in the OpenCVCalibrationNode __init__(). I have tried to move the cv2.namedWindow somewhere else but it also freezes. In fact after trying a few times the freeze transforms into a segmentation fault when executing the cv2.namedWindow statement.

Any idea what could the problem be?

I'm running Ubuntu 16.04, ROS kinetic, opencv version is 3.3

2018-12-11 03:21:29 -0500 received badge  Famous Question (source)
2018-09-28 03:42:21 -0500 received badge  Famous Question (source)
2018-07-16 17:18:56 -0500 received badge  Notable Question (source)
2018-07-12 05:38:52 -0500 received badge  Enthusiast
2018-07-09 09:24:25 -0500 received badge  Notable Question (source)
2018-07-06 03:57:49 -0500 answered a question camera_calibration opens gui window but freezes

This was an opencv library version conflict, as I suspected. I had opencv 3.4 also in a development folder. Despite came

2018-07-04 09:47:37 -0500 received badge  Popular Question (source)
2018-07-04 04:31:03 -0500 commented answer Remove a single ROS package

I get the same output with remove, instead of purge

2018-07-04 02:59:58 -0500 asked a question Remove a single ROS package

Remove a single ROS package I'm still trying to solve this problem in another question. I decided to uninstall camera_c

2018-07-04 02:52:49 -0500 received badge  Popular Question (source)
2018-07-04 02:29:08 -0500 received badge  Supporter (source)
2018-07-03 09:38:48 -0500 commented answer camera_calibration opens gui window but freezes

yes it freezes at the start. I have waited for a long time anyway, but I think it's not related with the calibration com