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

how to debug a package dependent on multiple packages?

asked 2011-08-08 21:17:09 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi everybody, I am trying a global planner based on D* lite. I am using launch files in sbpl_lattice_planner. But move_base dies as soon as goal is passed through nav_view! The problem is how to run this complete setup in gdb as there are multiple executables involved and roslaunch do a lot of things. Parameters can be set using rosparam, but How I can run a node in some namespace in gdb ?

The part of launch file look like this: <node ns="local_costmap" name="voxel_grid_throttle" pkg="topic_tools" type="throttle" args="messages voxel_grid 3.0 voxel_grid_throttled"/> <node pkg="move_base" type="move_base" respawn="false" name="move_base_node" output="screen">

thanks prince

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-08-08 21:42:24 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Not sure about the namespace thing, but to launch a node in gdb you usually add the launch-prefix attribute to the node tag like this:

<node launch-prefix="gdb -ex run --args" .../>

Did you try that already?

See also here

edit flag offensive delete link more
0

answered 2011-08-08 22:03:52 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I could run package binray in a namespace as

ROS_NAMESPACE=<namespace> <path to="" executable=""> [arguments]

Thanks LiMubei. I had not tried them. I was running the binaries directly using gdb.

prince

edit flag offensive delete link more

Comments

You can find some information on command line parameters to set the node name and namespace here: http://www.ros.org/wiki/Remapping%20Arguments
Lorenz gravatar image Lorenz  ( 2011-08-08 23:44:35 -0600 )edit

Question Tools

Stats

Asked: 2011-08-08 21:17:09 -0600

Seen: 556 times

Last updated: Aug 08 '11