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

felixd's profile - activity

2021-07-24 02:16:53 -0500 received badge  Famous Question (source)
2019-04-05 09:33:16 -0500 commented question Mysteries of the skeleton trackers

@alterf Yeah, please see below.

2019-04-05 09:33:16 -0500 received badge  Commentator
2019-04-05 09:32:59 -0500 marked best answer Mysteries of the skeleton trackers

Hey folks,

we are currently looking for a skeleton tracker we can use in our ROS project. We found these

  • skeleton_markers -> works only with indigo, not with kinetic and is in “end-of-life”
  • openni_tracker -> does not even work with indigo
  • other stuff like the Chaos84/skeleton_tracker are oftern many years old as well and very poorly documented

What happened to them? Did they simply get out of fashion because something else replaced them or some companies bought some technologies (Apple)?

Do you know of a well maintained skeleton tracker already integrated in ROS or outside?

Thanks!

2019-04-05 09:32:59 -0500 received badge  Scholar (source)
2019-04-05 09:32:53 -0500 answered a question Mysteries of the skeleton trackers

We finally ended up using the concepts openni2_tracker but had to heavily modify (=rewrite) it, since the code was so ba

2019-03-19 04:56:34 -0500 received badge  Notable Question (source)
2019-03-19 04:51:22 -0500 received badge  Student (source)
2019-03-19 04:51:17 -0500 received badge  Popular Question (source)
2018-11-08 08:52:23 -0500 received badge  Enthusiast
2018-11-07 03:12:06 -0500 asked a question Mysteries of the skeleton trackers

Mysteries of the skeleton trackers Hey folks, we are currently looking for a skeleton tracker we can use in our ROS pro

2018-04-16 15:45:28 -0500 received badge  Famous Question (source)
2018-02-23 07:16:44 -0500 received badge  Notable Question (source)
2018-01-25 02:50:47 -0500 commented question How to structure & link automated tests

Okay, thank you all for the linked Github PR. I will leave this open for now but we will probably use bilingual or Pytho

2018-01-25 01:41:23 -0500 received badge  Popular Question (source)
2018-01-24 09:04:57 -0500 commented question How to structure & link automated tests

Yes, Python 2/3 mixing can be problematic. But is there really no simple solution to this? I initially thought it would

2018-01-24 09:04:38 -0500 commented question How to structure & link automated tests

Yes, Python 2/3 mixing can be problematic. But is there really no simple solution to this? I initially thought it would

2018-01-24 07:54:19 -0500 asked a question How to structure & link automated tests

How to structure & link automated tests This question is about the structure of automated tests in a typical ROS/Cat

2018-01-23 14:01:36 -0500 received badge  Famous Question (source)
2017-08-22 01:42:44 -0500 marked best answer Cannot execute catkin_make in githook

I have a pre-push githook that tries to execute catkin_make before pushing, to only allow pushes that (at least) can compile. It works by git invoking invoking a bash script and depending on the return code allowing or denying the push "request". The githook is invoked locally: nothing is run on the server. The script looks like this (only the important parts):

#!/bin/bash

# "This hook is called by git push and can be used to prevent a push from taking place.
#  If this hook exits with a non-zero status, git push will abort without pushing anything. 
#  Information about why the push is rejected may be sent to the user by writing to standard error."
# see: https://git-scm.com/docs/githooks

# make the script fail if any line fails, see: http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail

# go to the project root
# taken from here: https://stackoverflow.com/a/1571525/3753684
repo_root=$( git rev-parse --show-toplevel )
cd $repo_root

# build the project once
# this still prints output *on error*, which is what we want
build_output=$( catkin_make )
build_exit_status=$?

if [ $build_exit_status -eq 0 ];

    then # it worked, let git push it

        # log success message 
        echo "build succeeded, pushing is allowed"

        # exit successfully
        exit 0

    else # it failed, prevent git from pushing

        # log fail message
        echo -e "--------------------\n\n"
        echo "Failed to build the project. Not pushing."

        # exit non-successfully
        exit $build_exit_status

fi

When I execute it in the terminal by hand, everything works just fine. But when git invokes it, this error gets printed out: ".git/hooks/pre-push: line 19: catkin_make: command not found". Line 19 is the one containing build_output=$( catkin_make ). It strangely works on another machine having pretty much the same setup. We both have ROS Kinetic installed on Ubuntu LTS 16.04 and Kubuntu LTS 16.04.

What am I doing wrong?

I think catkin_make itself cannot be found. I have this in my ~/.bashrc:

source /opt/ros/kinetic/setup.bash
source /home/felix/sailing/bord-pc/devel/setup.bash
export BORD_PC_WORKSPACE=/home/felix/sailing/bord-pc # this is my workspace

And sourcing it in the script and/or in the subshell in line 19 did not work:

source ~/.bashrc
build_output=$( source ~/.bashrc && catkin_make )
2017-08-21 14:22:10 -0500 commented answer Cannot execute catkin_make in githook

Hm yeah, I thought you meant sourcing the ~/.bashrc ... which somehow didn't work. But thanks! :)

2017-08-21 14:11:24 -0500 received badge  Notable Question (source)
2017-08-21 12:44:47 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 12:44:35 -0500 edited answer Cannot execute catkin_make in githook

I finally found the solution: I had to add source /opt/ros/kinetic/setup.bash directly in the subshell, the indirect s

2017-08-21 12:41:29 -0500 answered a question Cannot execute catkin_make in githook

I finally found the solution: I had to add source /opt/ros/kinetic/setup.bash directly in the subshell, the indirect s

2017-08-21 12:26:57 -0500 received badge  Supporter (source)
2017-08-21 12:26:27 -0500 received badge  Popular Question (source)
2017-08-21 12:23:59 -0500 commented answer Cannot execute catkin_make in githook

Yes. I put in the script, and tried to push something.

2017-08-21 12:21:04 -0500 commented answer Cannot execute catkin_make in githook

My $PATH: /usr/lib/git-core:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sn

2017-08-21 12:20:43 -0500 commented answer Cannot execute catkin_make in githook

My $PATH: /usr/lib/git-core:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sn

2017-08-21 12:17:45 -0500 commented answer Cannot execute catkin_make in githook

That didn't work either. See my edit in the question at the bottom.

2017-08-21 12:17:22 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 12:15:22 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 12:14:18 -0500 commented answer Cannot execute catkin_make in githook

Ohhh, now I get the comments about the server: The githook is invoked locally! Nothing is run on the server.

2017-08-21 12:12:11 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 12:10:47 -0500 commented answer Cannot execute catkin_make in githook

exactly that didn't work either

2017-08-21 12:10:20 -0500 commented answer Cannot execute catkin_make in githook

Sorry, I immediately edited the question bu you were to fast. ;)

2017-08-21 12:08:41 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 12:06:19 -0500 commented answer Cannot execute catkin_make in githook

Sorry, I immediately edited the question bu you were to fast. ;) I think catkin_make itself cannot be found. I have thi

2017-08-21 12:05:50 -0500 commented answer Cannot execute catkin_make in githook

Sorry, I immediately edited the question bu you were to fast. ;) I think catkin_make itself cannot be found. I have thi

2017-08-21 12:02:31 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 12:02:31 -0500 received badge  Editor (source)
2017-08-21 12:00:37 -0500 edited question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl

2017-08-21 11:56:53 -0500 asked a question Cannot execute catkin_make in githook

Cannot execute catkin_make in githook I have a pre-push githook that tries to execute catkin_make before pushing, to onl