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

SteBisi's profile - activity

2021-03-11 09:36:59 -0500 received badge  Notable Question (source)
2021-03-11 09:36:59 -0500 received badge  Popular Question (source)
2021-03-11 09:36:59 -0500 received badge  Famous Question (source)
2019-02-03 15:22:55 -0500 received badge  Famous Question (source)
2018-09-18 08:35:15 -0500 received badge  Enthusiast
2018-09-15 08:46:32 -0500 marked best answer C++ Compiler uses the wrong Costmap2DROS version

Hello everyone, I'm trying to write some c++ code that uses the Costmap2DROS class, but I have this error at compile time:

error: no matching function for call to ‘costmap_2d::Costmap2DROS::Costmap2DROS(std::__cxx11::string&, tf2_ros::Buffer&)

/opt/ros/kinetic/include/costmap_2d/costmap_2d_ros.h:80:3: note: candidate: costmap_2d::Costmap2DROS::Costmap2DROS(std::__cxx11::string, tf::TransformListener&)
   Costmap2DROS(std::string name, tf::TransformListener& tf);

The line that gives the problem is this one:

costmap = new costmap_2d::Costmap2DROS("global_planner", tfl);

where tfl is a tf2::Buffer& object.

I have seen from these reference pages
http://docs.ros.org/jade/api/costmap_...

http://docs.ros.org/melodic/api/costm... that depending on the ROS version you have different constructors for the class. The problem is that I am working on ROS Kinetic, that according to the ROS wiki, uses the melodic version, so why my compiler is using the jade one? How can I solve this?

Thank you in advance to anyone who can help

2018-09-15 08:46:32 -0500 received badge  Scholar (source)
2018-09-15 08:46:29 -0500 received badge  Supporter (source)
2018-09-15 08:46:25 -0500 commented answer C++ Compiler uses the wrong Costmap2DROS version

Thank you. My bad, I misread the references

2018-09-14 17:29:43 -0500 marked best answer Problems working with .dae files

Hello everyone, I'm struggling with a urdf model to visualize in rviz, this is the file I've written so far:

<?xml version="1.0"?>
<robot name="bot2489">

  <material name="black">
    <color rgba = "0 0 0 1"/>
  </material>

  <link name="base_link">
    <visual>
      <origin rpy="0.0 0 0" xyz="0 0 0"/>
      <material name="black"/>
      <geometry>
        <mesh filename="package://bot2489_description/meshes/bot2489_body.dae"/>
      </geometry>
    </visual>
    <collision>
      <origin rpy="0.0 0 0" xyz="0 0 0"/>
      <geometry>
        <mesh filename="package://bot2489_description/meshes/bot2489_body.dae"/>
      </geometry>
    </collision>
  </link>
</robot>

The problem is that when I launch it in rviz, using the urdf_tutorial display.launch file, nothing appears. In the "Global Status" section of the window there's a warning :

No tf data. Actual error: Fixed Frame [base_link] does not exist

It is weird, because the .dae file should be fine (is made with Rhino v5 and saved as .dae), and on the terminal, while loading the file, I get no errors. Can you please help me to understand what I'm doing wrong?

2018-09-14 14:52:36 -0500 received badge  Notable Question (source)
2018-09-14 13:41:54 -0500 received badge  Popular Question (source)
2018-09-14 11:50:27 -0500 asked a question C++ Compiler uses the wrong Costmap2DROS version

C++ Compiler uses the wrong Costmap2DROS version Hello everyone, I'm trying to write some c++ code that uses the Costmap

2018-05-17 08:12:09 -0500 received badge  Famous Question (source)
2017-11-29 22:26:57 -0500 received badge  Notable Question (source)
2017-11-29 22:25:36 -0500 commented question Problems working with .dae files

@jarvisschultz, I think it t could be also that, but I got the same error even after adding the joints. Ended up that th

2017-11-29 04:04:19 -0500 commented answer Problems working with .dae files

Thank you for the answer, I tried to do what you said but I still ave the same problem

2017-11-28 23:37:52 -0500 received badge  Popular Question (source)
2017-11-28 12:12:42 -0500 asked a question Problems working with .dae files

Problems working with .dae files Hello everyone, I'm struggling with a urdf model to visualize in rviz, this is the file

2017-11-20 11:57:20 -0500 commented question Dynamically shape included models in gazebo

Ok, sorry, I did it :) http://answers.gazebosim.org/question/17862/dynamically-shape-included-models-in-gazebo/

2017-11-20 08:43:54 -0500 asked a question Dynamically shape included models in Gazebo

Dynamically shape included models in Gazebo Hello everyone, I'm working on a university project in which I have to creat

2017-11-20 08:43:53 -0500 asked a question Dynamically shape included models in gazebo

Dynamically shape included models in gazebo Hello everyone, I'm working on a university project in which I have to creat