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

Skyking's profile - activity

2022-12-29 09:53:56 -0500 received badge  Nice Question (source)
2022-02-24 07:32:30 -0500 received badge  Notable Question (source)
2022-02-24 07:32:30 -0500 received badge  Famous Question (source)
2021-04-12 13:45:36 -0500 received badge  Famous Question (source)
2021-04-12 13:45:36 -0500 received badge  Notable Question (source)
2021-03-10 07:50:33 -0500 received badge  Famous Question (source)
2020-07-22 07:02:04 -0500 received badge  Notable Question (source)
2020-01-22 19:12:01 -0500 received badge  Nice Question (source)
2019-10-11 05:01:34 -0500 received badge  Popular Question (source)
2019-08-24 21:59:04 -0500 received badge  Popular Question (source)
2019-08-09 17:07:38 -0500 marked best answer C++ bindings for python in ros 2

Since boost is no longer used in ROS 2 , what will be the preferred method for binding C++ code with python ? In ROS 1, we were using boost/python.hpp, what is the suitable option in ROS 2.0 ?

2019-08-08 17:31:45 -0500 received badge  Famous Question (source)
2019-07-23 01:07:33 -0500 received badge  Notable Question (source)
2019-05-31 06:37:08 -0500 received badge  Nice Question (source)
2019-05-22 08:00:10 -0500 received badge  Famous Question (source)
2019-05-20 02:11:58 -0500 marked best answer Do services in ros 2 require a seperate .srv file ?

I was reading this tutorial where they have created a service based server/client for adding two integers.However, they have not created the .srv files as required in ROS 1. Is it possible to mention the service type without creating the .srv files ?

2019-05-20 02:09:00 -0500 marked best answer Integrate sensor_msgs with ros 2 ?

I want to create a pub-sub using sensor_msgs in ros 2? Is there tutorial showing how to do this ?

2019-05-20 01:14:49 -0500 marked best answer Use identical package.xml for ROS1 and ROS2 pkgs

What would be the general package.xml strucutre in order to compile a package for both ROS1(catkin) and ROS2(ament) ? It would be very helpful if gives an example for doing this.

2019-05-20 01:00:14 -0500 marked best answer "template argument deduction/substitution failed:" error on using rclcpp::Node::create_wall_timer function

Hi,

When using the rclcpp::Node::create_wall_timer function with std::bind , I am getting the following error

no matching function for call to ‘composition::Talker::create_wall_timer(std::chrono::seconds, std::_Bind_helper<false, void="" (composition::talker::*)(int),="" composition::talker*,="" int="">::type)’

The error can be reproducer if one changes std::bind function inside the create_wall_timer () to add extra arguments to the function pointer.

I am attaching the code for your kind reference.

#include "composition/talker_component.hpp"
#include <chrono>
#include <iostream>
#include <memory>
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"

using namespace std::chrono_literals;

namespace composition
{

Talker::Talker()
: Node("talker"), count_(0)
{
  // Create a publisher of "std_mgs/String" messages on the "chatter" topic.
  pubbase_= this->create_publisher<std_msgs::msg::String>("chatter");

  pub_ = create_publisher<std_msgs::msg::String>("chatter");
  timer_ = create_wall_timer(1s, std::bind(&Talker::on_timer, this,95));

}

void Talker::on_timer(int level)
{
  auto msg = std::make_shared<std_msgs::msg::String>();

  msg->data = "Hello World: " + std::to_string(++count_);

  // Put the message into a queue to be processed by the middleware.

  // This call is non-blocking.
  pub_->publish(msg);
}
2019-04-08 02:40:10 -0500 received badge  Notable Question (source)
2019-04-07 22:41:56 -0500 marked best answer roslaunch for ros 2 composition packages

I was going trough the composition packages in ROS 2 which I found to be similar to the ros nodelets concepts.In ROS 1 we use launch files to start a particular nodelet.Will there be similar concept for future ROS 2 releases? Or should we create a seperate executable like the manual_composition.cpp file for every components we have created in ROS 2 ??

Thanks for your help.

2019-04-04 02:52:05 -0500 received badge  Notable Question (source)
2019-03-29 17:24:29 -0500 received badge  Notable Question (source)
2019-03-15 05:20:14 -0500 received badge  Famous Question (source)
2019-02-03 05:18:11 -0500 received badge  Famous Question (source)
2019-02-01 05:21:27 -0500 received badge  Famous Question (source)
2019-01-18 12:56:41 -0500 received badge  Popular Question (source)
2019-01-15 07:22:05 -0500 received badge  Favorite Question (source)
2019-01-11 12:49:06 -0500 marked best answer get ROS 2 nodehandle in case of composed nodes

Hello All,

Suppose I am using a Composed node as mentioned in this example(https://github.com/ros2/demos/blob/master/composition/src/talker_component.cpp). Now I need to pass a rclcpp::Node::SharedPtr of this composed Node to another class. In case of ROS 1 nodeletes, this can be done using getNodeHandle(). Is there any similar way of doing this in ROS 2 ?

2019-01-03 07:42:20 -0500 received badge  Famous Question (source)
2018-12-25 14:30:43 -0500 received badge  Taxonomist
2018-12-20 10:06:20 -0500 received badge  Popular Question (source)
2018-12-06 17:57:09 -0500 received badge  Good Question (source)
2018-11-15 07:19:12 -0500 received badge  Notable Question (source)
2018-11-15 07:19:12 -0500 received badge  Popular Question (source)
2018-11-01 10:50:09 -0500 marked best answer function callback using std::bind in ros 2 subscription

Hi,

Using std::bind with rclcpp::Node::create_subscription() throws compilation errors.

For example, I cannot use

sub_input_ = node->create_subscription<sensor_msgs::msg::Imu>("input",
  std::bind(
      &input_surface_indices_callback,
      this, <argument1>,<argument2>));

However using lamdas as a callback function is ok in this case. Any help/information on this is welcome.

2018-10-25 08:06:51 -0500 received badge  Notable Question (source)
2018-10-24 08:21:11 -0500 received badge  Famous Question (source)
2018-10-23 15:55:18 -0500 received badge  Famous Question (source)
2018-10-17 14:03:05 -0500 received badge  Popular Question (source)
2018-10-16 10:51:58 -0500 received badge  Popular Question (source)
2018-10-15 09:22:49 -0500 asked a question rviz2 visualization issue with MarkerArray messages

rviz2 visualization issue with MarkerArray messages I am unable to visualise visualization_msg::msg::MarkerArray msgs ,