Ask Your Question

gsarret's profile - activity

2018-02-23 17:52:01 -0500 received badge  Famous Question (source)
2017-07-05 11:55:28 -0500 received badge  Famous Question (source)
2017-03-22 06:30:50 -0500 received badge  Enthusiast
2017-03-15 02:10:40 -0500 received badge  Notable Question (source)
2017-02-18 08:53:07 -0500 received badge  Popular Question (source)
2017-02-18 07:03:14 -0500 commented answer How to compile and run code written with MoveIt API?

Thank you so much for a detailed answer! Everything makes a bit more sense now to me. As you've probably noticed, I'm a newbie. I'll dig into reading ROS tutorials and docs. I've read some already, just didn't realize I have to create my own package. I was aware of CMake, of course! (: Thanks again!

2017-02-18 06:51:03 -0500 received badge  Supporter (source)
2017-02-18 06:51:01 -0500 received badge  Scholar (source)
2017-02-18 05:22:33 -0500 received badge  Editor (source)
2017-02-18 05:21:13 -0500 asked a question How to compile and run code written with MoveIt API?

There are several tutorials on MoveIt website on C++ API like this one. I've downloaded them, built using catkin build and now can run those examples using roslaunch. But how exactly do I compile and run my own code? If I copy one of the example cpp-files to ${CATKIN_WS}/moveit_mycode/, say move_group_interface_tutorial.cpp, edit a couple of lines, then what do I do next?

My take is that I shouldn't use gcc straightforwardly, but rather catkin build, which means I need a CMakelists.txt or something similar. Also, should I write a .launch file? I realize this is a very basic question, but I couldn't figure it out. I couldn't find any info on the topic, too, neither on MoveIt website nor anywhere else. I'd appreciate any help!

I'm on ROS Kinetic, Ubuntu 16.04.

2017-02-18 04:53:04 -0500 received badge  Notable Question (source)
2017-02-16 18:16:16 -0500 commented answer `roslaunch pr2_moveit_config demo.launch` fails

@gvdhoorn Thanks, I edited the answer, indeed rosdep update should not be run as root (as it always reminds whenever you do that). As for the compatibility, I realize it's still work in progress, and I hope ROS will get much more stable in future. Perhaps, I'll even have a hand in it (:

2017-02-16 01:31:59 -0500 received badge  Popular Question (source)
2017-02-15 15:12:37 -0500 answered a question `roslaunch pr2_moveit_config demo.launch` fails

The crash had in principle nothing to do with either RViz or any other part of ROS (though, it's still not a good thing --- to receive a SIGSEGV and crash). If you stumble upon something similar, just remember to always update:

rosdep update
sudo apt-get update && sudo apt-get dist-upgrade -y

"Have you tried turning it off and on again?"

2017-02-15 15:04:42 -0500 commented question `roslaunch pr2_moveit_config demo.launch` fails

@gvdhoorn Well, as usual, the problem turned out to be absolutely dumb. I suspected that, just didn't expect it to be SO dumb. Anyway, thanks for your comments, might come in handy at some point later.

2017-02-13 16:10:23 -0500 commented question `roslaunch pr2_moveit_config demo.launch` fails

@gvdhoorn That's nice. Good, unless someone has a solution or I magically resolve it myself, I'll give gdb a try. Thank you.

2017-02-13 14:50:22 -0500 commented question `roslaunch pr2_moveit_config demo.launch` fails

@gvdhoorn Thanks for the suggestion, but it works fine when I run RViz just from a command line. Any ideas on how to run it in gdb while executing roslaunch pr2_moveit_config demo.launch? My guess is I have to mess with demo.launch file, right? Or, build RViz from scratch with debug symbols?

2017-02-13 13:39:29 -0500 commented question `roslaunch pr2_moveit_config demo.launch` fails

No problems with roscore &; rviz, by the way.

2017-02-13 13:39:29 -0500 asked a question `roslaunch pr2_moveit_config demo.launch` fails

I'm trying to run Dave Coleman's demo which I cloned from his repo: https://github.com/davetcoleman/pr2_m... .

This works fine:

roslaunch moveit_setup_assistant setup_assistant.launch

However, I've troubles with the following:

roslaunch pr2_moveit_config demo.launch

When I run this line, lots of things happen, then RViz starts and after a short while fails, leaving this message in terminal:

[rviz_c8d753b8ad42_15266_8281796835458697607-6] process has died [pid 15335, exit code -11, cmd /opt/ros/kinetic/lib/rviz/rviz -d /root/ws_moveit/install/share/pr2_moveit_config/launch/moveit.rviz __name:=rviz_c8d753b8ad42_15266_8281796835458697607 __log:=/root/.ros/log/af9613b0-f21b-11e6-b13f-0242ac110002/rviz_c8d753b8ad42_15266_8281796835458697607-6.log].
log file: /root/.ros/log/af9613b0-f21b-11e6-b13f-0242ac110002/rviz_c8d753b8ad42_15266_8281796835458697607-6*.log

Unfortunately, there's no logfile from RViz, only master.log, rosout.log etc., none of which provides any valuable info. Does anyone know where this error might come from? How to troubleshoot, where do I start? How to make rviz output logs at least?

I'm running it from a docker container, if it matters.

Thanks in advance.