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

Juan's profile - activity

2021-11-12 08:05:52 -0500 received badge  Famous Question (source)
2021-06-02 07:39:38 -0500 received badge  Famous Question (source)
2021-03-12 10:23:06 -0500 received badge  Notable Question (source)
2021-01-20 16:28:32 -0500 received badge  Popular Question (source)
2021-01-20 16:28:32 -0500 received badge  Notable Question (source)
2020-11-24 05:09:14 -0500 received badge  Popular Question (source)
2020-11-21 00:25:53 -0500 edited question urdf::Model , boost::shared_ptr<urdf::Link>, boost::shared_ptr<urdf::Joint>

urdf::Model , boost::shared_ptr<urdf::link>, boost::shared_ptr<urdf::joint> Noetic 20.04 Wanting to use the

2020-11-21 00:22:53 -0500 edited question urdf::Model , boost::shared_ptr<urdf::Link>, boost::shared_ptr<urdf::Joint>

urdf::Model , boost::shared_ptr<urdf::link>, boost::shared_ptr<urdf::joint> Noetic 20.04 Wanting to use the

2020-11-21 00:22:20 -0500 edited question urdf::Model , boost::shared_ptr<urdf::Link>, boost::shared_ptr<urdf::Joint>

urdf::Model , boost::shared_ptr<urdf::link>, boost::shared_ptr<urdf::joint> Noetic 20.04 Wanting to use the

2020-11-21 00:21:21 -0500 asked a question urdf::Model , boost::shared_ptr<urdf::Link>, boost::shared_ptr<urdf::Joint>

urdf::Model , boost::shared_ptr<urdf::link>, boost::shared_ptr<urdf::joint> Noetic 20.04 Wanting to use the

2020-11-07 03:44:19 -0500 asked a question catkin_simple and ignition in Noetic

catkin_simple and ignition in Noetic Greetings, I am porting code from Kinetic to Noetic. I am getting the following

2020-11-07 03:14:09 -0500 asked a question Missing Qt5QtCoreConfig.cmake in Noetic

Missing Qt5QtCoreConfig.cmake in Noetic I am trying to move some old code to noetic... Testing to see what compiles what

2020-10-13 02:32:00 -0500 received badge  Famous Question (source)
2019-12-30 02:42:49 -0500 received badge  Notable Question (source)
2019-12-30 02:42:49 -0500 received badge  Popular Question (source)
2019-09-20 02:19:04 -0500 marked best answer Can a sequence of nodes be run in SMACH, behavior trees, or similar?

Hi,

I am looking for a solution to the idea of creating a state machine as a sequence of nodes, or a sequence of concurrent nodes. Where the nodes, could be nodes of any type that a user has created.

SMACH/pi-trees/flexbe, out-of-the box seems to work with actionlib, services, topic monitoring. But what if you want to take an FSM and do as follows:

state1 (node1) -> state 2(node 2) -> state3(node3), while checking some kind of transition checking.

Or perhaps running nodes concurrently: state1 (node1,node2) -> state 2(node3, node4) -> state3(node5), this would also be similar to having each state call a launch file....

Thanks

2019-08-27 21:26:30 -0500 received badge  Famous Question (source)
2019-04-10 21:37:41 -0500 commented answer Use wstool but keep git directories organized under a custom structure

Great!!! Thanks for that tip!

2019-04-10 21:37:32 -0500 marked best answer Use wstool but keep git directories organized under a custom structure

Imagine I have the following structure in my directory:

ros_ws
|__src
       |.rosinstall
       |__robots
                |__baxter
                     |__baxter.rosinstall
                     |__baxter_sdk
                     |__.git
                      ...
                |__sawyer
                     |__sawyer.rosinstall
                     |__sawyer_sdk
                     |__.git

Is there a way to call wstool update locally or globally to update git repos but keep them in my pre-established structure. Currently when I do wstool update it want to place updated git repo folders directly under ros_ws/src.

2019-04-10 21:37:32 -0500 received badge  Scholar (source)
2019-04-06 12:44:05 -0500 received badge  Notable Question (source)
2019-04-05 01:11:16 -0500 asked a question Use wstool but keep git directories organized under a custom structure

Use wstool but keep git directories organized under a custom structure Imagine I have the following structure in my dire

2019-04-04 22:50:00 -0500 answered a question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

My apologies. I had installed an older version of boost in my system (1.50.0). This installation created conflicts with

2019-04-04 10:47:55 -0500 received badge  Popular Question (source)
2019-04-04 04:43:21 -0500 commented question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

Should I try to set my libboost_thread.so to version 1.50? i.e. From libboost_thread.so -> /libboost_thread.so.1.5

2019-04-04 04:10:31 -0500 edited question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11?? Ubuntu 16.04

2019-04-04 04:10:01 -0500 commented question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

Are you aware of any conflicts between ros/boost/tuple or new C standards?

2019-04-04 04:03:56 -0500 edited question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11?? Ubuntu 16.04

2019-04-04 03:21:46 -0500 edited question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11?? Ubuntu 16.04

2019-04-04 03:20:52 -0500 asked a question A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11??

A myriad of libboost errors caused in tf or ros::param::get due to std::tuple declaration? Fix -std=c++11?? Ubuntu 16.04

2018-08-01 19:41:03 -0500 received badge  Famous Question (source)
2018-08-01 19:41:03 -0500 received badge  Notable Question (source)
2018-08-01 19:41:03 -0500 received badge  Popular Question (source)
2018-07-09 13:57:00 -0500 marked best answer Can't get dynamic reconfigure to spin when callback is a member of a class

I am using ROS Indigo, Ubuntu 14.04. Get no compile errors. When I debug with GDB I can see I go into my callback once, but no more thereafter. This also happened when the callback was made global outside the class. I thought that perhaps this was why it was not being called. But it seems this is not the problem.

I have three other subscription callbacks in this code that work fine as well one publication.

Below I show the callback and the main function. Currently I use spinOnce() but I have tried other spin mechanisms like spin() AsyncSpinner, MultiThreadedSpinner to see if that made a difference.

The full file / ROS package can be found here: https://github.com/birlrobotics/birl_...

Any help would be greatly appreciated.

namespace force_controller
{
  //***********************************************************************************************************************************************
  // callback(...) for dynamic Reconfigure set as a global function. 
  // When the rqt_reconfigure gui is used and those parameters are changed, the config.param_name in this function will be updated. Then, these parameters need to be set to the private members of your code to record those changes. 
  //***********************************************************************************************************************************************
  //void callback(force_error_constants::force_error_constantsConfig &config, uint32_t level)
  void controller::callback(force_error_constants::force_error_constantsConfig &config, uint32_t level)
  {
    // Print the updated values
    ROS_INFO("Dynamic Reconfigure Prop gains: %f %f %f %f %f %f\nDerivative gains: %f", 

             // Proportional Gains
             config.k_fp0,
             config.k_fp1,
             config.k_fp2,

             config.k_mp0,
             config.k_mp1,
             config.k_mp2,

             // Derivative Gains
             config.k_fv0);

    // Save proportional gains  to the corresponding data members. 
    k_fp0=config.k_fp0;
    k_fp1=config.k_fp1;
    k_fp2=config.k_fp2;

    k_mp0=config.k_mp0;
    k_mp1=config.k_mp1;
    k_mp2=config.k_mp2;

    // Save derivative gains to the corresponding data members.
    k_fv0=config.k_fv0;

    // change the flag
    force_error_constantsFlag = true;

  }
...
----------------

 int main(int argc, char** argv)
{
  ros::init(argc, argv, "control_basis_controller");

  // Create a node namespace. Ie for service/publication: <node_name>/topic_name or for parameters: <name_name>/param_name 
  ros::NodeHandle node("~"); 

  // Instantiate the controller
  force_controller::controller myControl(node);

  // Set up the Dynamic Reconfigure Server to update controller gains: force, moment both proportional and derivative.
  if(myControl.dynamic_reconfigure_flag)
    {
     // (i) Set up the dynamic reconfigure server
      dynamic_reconfigure::Server<force_error_constants::force_error_constantsConfig> srv;

      // (ii) Create a callback object of type force_error_constantsConfig
      dynamic_reconfigure::Server<force_error_constants::force_error_constantsConfig>::CallbackType f;

      // (iii) Bind that object to the actual callback function
      //f=boost::bind(&force_controller::callback, _1, _2); // Used to pass two params to a callback.

      // Bind a new function f2 with the force_controller::controller::callback.
      // The left side of the command, tells boost that the callback returns void and has two input parameters. 
      // It also needs the address of the this pointer of our class, and the indication that it has the two parameters follow the order _1, _2. 
      boost::function<void (force_error_constants::force_error_constantsConfig &,int) > f2( boost::bind( &force_controller::controller::callback,&myControl, _1, _2 ) );

      // (iv) Set the callback to the service server. 
      f=f2; // Copy the functor data f2 to our dynamic_reconfigure::Server callback type
      srv.setCallback(f);

      // Update the rosCommunicationCtr
      myControl.rosCommunicationCtrUp();
    }

  if(!myControl.start())
    {
      ROS_ERROR("Could not start controller, exiting");
      ros::shutdown();
      return 1;
    }

  ros::Rate rate( myControl.get_fcLoopRate() );

  /*** Different Communication Modes ***/
  while(ros::ok())
    {

      // 1. Non ...
(more)
2018-02-28 20:41:49 -0500 marked best answer Problems with .rosinstall when calling wstool merge

Using Linux 14.04, ROS Indigo.

I am familiar with wstool. Just expanded my repository to better organize code: https://www.github.com/birlrobotics

Trying to do the traditional steps:

  • wstool init
  • wstool merge [address]
  • wstool update

Now, when I try westool merge with the following file: wstool merge https://github.com/birlrobotics/birl_...

I get the following error:

ERROR in config: Invalid multiproject yaml format in in "<file>", line 7, column 19

A few points here:

  • It does not seem that the line 7, column 19 points to anything I can figure out.
  • I have tried going over this file multiple times trying to figure out if there are any small mistakes and I can't find anything.
  • If I just copy the contents of the file into a local birl_baxter.rosinstall file and then call wstool update IT WORKS. The output below is obtained with wstool info if I copy the contents manually:

workspace: /media/vmrguser/sdd/ros/indigo/birl_baxter_ws/src

Localname S SCM Version (Spec) UID (Spec) URI (Spec) [http(s)://...] ---------
- --- -------------- ----------- --------------------------- birl_baxter_wiki git master bba17767ba05 github.com/birlrobotics/birl_baxter.wiki.git birl_sensors git master 68002e8ab082 github.com/birlrobotics/birl_sensors.git birl_baxter_worlds git master 89a310a39f9e github.com/birlrobotics/birl_baxter_worlds.git birl_baxter_vision git master ac6b6776b216 github.com/birlrobotics/birl_baxter_vision.git birl_baxter_tools git master c96785268756 github.com/birlrobotics/birl_baxter_tools.git birl_baxter_recorded_motions git master ed05ddf0e0af github.com/birlrobotics/birl_baxter_recorded_motions.git birl_baxter_msgs git master 3fb7faa7bb38 github.com/birlrobotics/birl_baxter_msgs.git birl_baxter_matlab git master 9cf0165b4f8c github.com/birlrobotics/birl_baxter_matlab.git birl_baxter_images git master 383a8c428bdf github.com/birlrobotics/birl_baxter_images.git birl_baxter_hands git master 6d88ca03a51b github.com/birlrobotics/birl_baxter_hands.git birl_baxter_executive git master 839f854ab3a2 github.com/birlrobotics/birl_baxter_executive.git birl_baxter_examples git master b99fb7e3bc37 github.com/birlrobotics/birl_baxter_examples.git birl_baxter_demos git master 84f109b8f308 github.com/birlrobotics/birl_baxter_demos.git birl_baxter_controllers git master a5914da2a7ec github.com/birlrobotics/birl_baxter_controllers.git birl_baxter_common git master 769c4676a999 github.com/birlrobotics/birl_baxter_common.git birl_baxter git master 45717b2422fd github.com/birlrobotics/birl_baxter.git

Does anyone have an insight into this?

2018-01-08 02:22:42 -0500 commented question a moveit pr2 tutorial terminates with a mutex_lock error

same problem for me.

2018-01-08 02:21:29 -0500 commented question problem in Moveit Tutorials step: MoveGroup interface Tutorial

I get the same crash in the indigo version.

2017-11-30 21:08:00 -0500 received badge  Famous Question (source)
2017-09-17 13:20:55 -0500 marked best answer How to launch stereo view from inside a launch file

I am having trouble with thinking how to do two arguments inside the args type of a node element in the launch file.

Consider wanting to launch the following node inside a launch file: rosrun image_view stereo_view stereo:=/my_stereo_cam image:=image_rect_color

We would have something like this:

<launch>

 <arg name="stereo" default="multisense_sl/camera"/>
 <arg name="image_view" default="image_rect_color"/>

  <node name="stereo_cam" pkg="image_view" type="stereo_view" args="stereo:=$(arg stereo) image:=$(arg image_view)" >
 </node>
</launch>

I have tried different combinations of arguments formats, quotes, and just can't get it to work. I would appreciate any advice. Thanks

2017-08-24 06:51:31 -0500 received badge  Famous Question (source)
2017-07-20 08:30:20 -0500 received badge  Famous Question (source)
2017-07-09 11:15:11 -0500 marked best answer Stage Tutorial Error: Laser Model Type Not Found

Ubuntu 1210 Nvidia GeForce GT640M Groovy

Followed Tutorial in: http://www.ros.org/wiki/stage/Tutorials/IntroductiontoStageControllers

Successfully downloaded: http://mobotica.googlecode.com/files/stage_controllers.tar.gz Successfully extracted Successfully found by rospack find

Filesystem structure for stage_controller looks fine But when I try to do: rosrun stage stageros /home/vmrguser/rosGWS/sandbox/stage_controllers/world/roomba-wander.world

Or any other world configuration, I get the following behavior: - Stage simulation window opens and then closes - Console says: err: Model type laser not found in model typetable (/tmp/buildd/ros-groovy-stage-1.6.7/debian/ros-groovy-stage/opt/ros/groovy/stacks/stage/build/stage/libstage/world.cc CreateModel)

Not sure why this happens

2017-05-22 04:29:52 -0500 received badge  Famous Question (source)