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

Charlie Murphy's profile - activity

2017-05-25 04:54:55 -0500 received badge  Necromancer (source)
2017-05-25 04:54:55 -0500 received badge  Teacher (source)
2014-10-07 11:59:19 -0500 received badge  Favorite Question (source)
2014-08-08 08:57:40 -0500 received badge  Famous Question (source)
2014-07-30 01:44:04 -0500 received badge  Notable Question (source)
2014-07-29 22:28:23 -0500 received badge  Taxonomist
2014-07-25 14:45:15 -0500 answered a question spawn urdf model in gazebo by C++

http://answers.ros.org/question/28557...

Check out the above question and following answers.

Or you could always just fork and give a command using system or one of the exec* functions.

something like

pid_t child = fork()
if (child == 0){
  system("rosrun gazebo spawn_model -file <path to xml/urdf file> -urdf -model <model_name>");
}

As to how to control the robot. Just publish to the topics the robot is listening to.

I've been using ros hydro and indigo to simulate and control a Turtlebot 2.0. What I do is launch the gazebo simulator and turtlebot urdf model using

roslaunch turtlebot_gazebo turtlebot_empty_world.launch

and then run my own programs I created with roscpp that issues commands through the cmd_vel_mux topic and listens to the various sensors.

2014-07-25 08:12:28 -0500 received badge  Popular Question (source)
2014-07-13 13:58:19 -0500 answered a question Ros Indigo cv_bridge OpenCv 2.4.8 source install

Well, The answer to this question is to uninstall the apt-get installed ros indigo and to install from source. There might be an easier/better way but this worked for me.

After installing from source I just needed to make sure my $ROS_PACKAGE_PATH pointed to the right directories.

2014-07-12 21:49:40 -0500 asked a question Ros Indigo cv_bridge OpenCv 2.4.8 source install

Hello everyone,

I've recently installed Ros Indigo on Ubuntu 14.04. I was having issues with OpenCv installed by sudo apt-get install libopencv-dev as it did not contain the nonfree/* (SIFT SURF and other 2d features) modules.

I decided to uninstall libopencv-dev and install OpenCv 2.4.8 from source. This went just fine; however, several ros packages (cv_bridge being one of them) were uninstalled as they depended on libopencv-dev.

This is the list of all of the ros packages that depend on libopencv-dev

  libopencv-dev ros-indigo-camera-calibration
  ros-indigo-compressed-depth-image-transport
  ros-indigo-compressed-image-transport ros-indigo-cv-bridge
  ros-indigo-depth-image-proc ros-indigo-desktop ros-indigo-gazebo-plugins
  ros-indigo-gazebo-ros-pkgs ros-indigo-image-geometry
  ros-indigo-image-pipeline ros-indigo-image-proc ros-indigo-image-rotate
  ros-indigo-image-transport-plugins ros-indigo-image-view
  ros-indigo-librviz-tutorial ros-indigo-perception
  ros-indigo-rqt-common-plugins ros-indigo-rqt-image-view
  ros-indigo-rqt-robot-plugins ros-indigo-rqt-rviz ros-indigo-rviz
  ros-indigo-rviz-plugin-tutorials ros-indigo-rviz-python-tutorial
  ros-indigo-simulators ros-indigo-stereo-image-proc
  ros-indigo-theora-image-transport ros-indigo-vision-opencv
  ros-indigo-visualization-tutorials ros-indigo-viz

Is there a method to install these packages and force them to depend on my source installed opencv?

2014-07-10 19:31:00 -0500 answered a question ROS Indigo Turtlebot Gazebo Simulation

I've figured out how to get this to work as a sort of semi-fix until the official debians are finalized and released. As fergs mentioned the problem is indeed with incompatabilities with ROS Indigo Gazebo and URDF. The temporary fix is to install Gazebo from source. This then lets gazebo use the urdf library that comes packaged with trusty.

Here are the steps I took from a fresh Ubuntu 14.04 install:

Install gazebo 2.2 from source. (I did the optional stage/player libraries as well) Install ros-indigo-desktop-full using apt-get Install ros turtlebot packages from source (only available option currently).

Use instructions found at: http://gazebosim.org/wiki/2.2/install http://wiki.ros.org/indigo/Installati... http://wiki.ros.org/turtlebot/Tutoria...

2014-06-26 08:05:04 -0500 received badge  Enthusiast
2014-06-25 22:25:29 -0500 received badge  Famous Question (source)
2014-06-25 17:05:45 -0500 commented answer ROS Indigo Turtlebot Gazebo Simulation

Hi thanks for the answer. I just came across this as well after posting an issue on the turtlebot_gazebo github.

2014-06-25 17:04:49 -0500 received badge  Supporter (source)
2014-06-25 15:16:12 -0500 received badge  Student (source)
2014-06-24 08:44:05 -0500 received badge  Notable Question (source)
2014-06-23 14:36:04 -0500 commented question ROS Indigo Turtlebot Gazebo Simulation

Thank you, I'm actually unsure how to run roslaunch turtlebot_gazebo turtlebot_empty_world.launch command in gdb.

2014-06-22 13:17:55 -0500 received badge  Popular Question (source)
2014-06-21 19:55:28 -0500 asked a question ROS Indigo Turtlebot Gazebo Simulation

On Ubuntu 14.04 Trusty I recently installed Ros Indigo using apt-get and the turtlebot packages from source following the instructions on turtlebot/indigo/instillation tutorial (but using rosdep install --from-paths src -i -y -r for the turtlebot modules). When I try to launch the turtlebot simulator using

roslaunch turtlebot_gazebo turtlebot_empty_world.launch

the turtlebot does not show in the gazebo window nor does the majority of the expected topics get posted (ie any of the /camera/* topics or /odom topic).

I'm using Gazebo 2.2.2, Ubuntu 14.04 and ROS Indigo I've sourced my the indigo setup.bash as well as the ones for the rocon, kobuki, and turtlebot modules from the instilation tutorial above. After starting the program the gazebo window will open and you can pan/zoom but none of the models will show on the screen, including any that I add after the program starts.

Below is the output of running roslaunch turtlebot_gazebo turtlebot_empty_world.launch

... logging to /home/charlie/.ros/log/6fa28384-f9a2-11e3-b032-54271e5d091b/roslaunch-charlie-FANG-2014-28176.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:// charlie-FANG-2014:60719/

SUMMARY
========

PARAMETERS
 * /bumper2pointcloud/pointcloud_radius: 0.24
 * /cmd_vel_mux/yaml_cfg_file: /home/charlie/tur...
 * /depthimage_to_laserscan/output_frame_id: /camera_depth_frame
 * /depthimage_to_laserscan/range_min: 0.45
 * /depthimage_to_laserscan/scan_height: 10
 * /robot_description: <?xml version="1....
 * /robot_state_publisher/publish_frequency: 30.0
 * /rosdistro: <...>
 * /rosversion: <...>
 * /use_sim_time: True

NODES
  /
    bumper2pointcloud (nodelet/nodelet)
    cmd_vel_mux (nodelet/nodelet)
    depthimage_to_laserscan (nodelet/nodelet)
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    laserscan_nodelet_manager (nodelet/nodelet)
    mobile_base_nodelet_manager (nodelet/nodelet)
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    spawn_turtlebot_model (gazebo_ros/spawn_model)

auto-starting new master
process[master]: started with pid [28191]
ROS_MASTER_URI=http:// localhost:11311

setting /run_id to 6fa28384-f9a2-11e3-b032-54271e5d091b
process[rosout-1]: started with pid [28204]
started core service [/rosout]
process[gazebo-2]: started with pid [28228]
/opt/ros/indigo/lib/gazebo_ros/gzserver: 5: [: Linux: unexpected operator
process[gazebo_gui-3]: started with pid [28234]
/opt/ros/indigo/lib/gazebo_ros/gzclient: 5: [: Linux: unexpected operator
process[spawn_turtlebot_model-4]: started with pid [28242]
Gazebo multi-robot simulator, version 2.2.2
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http:// gazebosim.org

Gazebo multi-robot simulator, version 2.2.2
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http:// gazebosim.org

Msg Waiting for master
Msg Connected to gazebo master @ http:// 127.0.0.1:11345
Msg Publicized address: 192.168.2.3
[ INFO] [1403396186.795938010]: Finished loading Gazebo ROS API Plugin.
Msg Waiting for master
[ INFO] [1403396186.799826284]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
Msg Connected to gazebo master @ http:// 127.0.0.1:11345
Msg Publicized address: 192.168.2.3
process[mobile_base_nodelet_manager-5]: started with pid [28281]
[ INFO] [1403396187.766250320, 0.030000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
process[cmd_vel_mux-6]: started with pid [28415]
process[bumper2pointcloud-7]: started with pid [28495]
process[robot_state_publisher-8]: started with pid [28542]
Segmentation fault (core dumped)
[gazebo-2] process has died [pid 28228, exit code 139, cmd /opt/ros/indigo/lib/gazebo_ros/gzserver ...
(more)