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

Shanika's profile - activity

2023-05-17 22:45:34 -0500 received badge  Nice Question (source)
2023-04-14 01:20:34 -0500 received badge  Favorite Question (source)
2021-11-22 12:15:58 -0500 received badge  Famous Question (source)
2021-11-22 12:15:58 -0500 received badge  Notable Question (source)
2021-09-11 14:39:13 -0500 received badge  Famous Question (source)
2021-09-11 14:39:13 -0500 received badge  Notable Question (source)
2021-01-18 19:53:08 -0500 received badge  Nice Question (source)
2021-01-06 04:49:33 -0500 received badge  Favorite Question (source)
2020-11-12 22:15:55 -0500 received badge  Famous Question (source)
2020-11-03 02:48:14 -0500 received badge  Popular Question (source)
2020-11-03 02:48:14 -0500 received badge  Notable Question (source)
2020-10-21 04:25:18 -0500 marked best answer How to use Float32MultiArray (Publisher)

Hello,
I am trying to write a python code using the Float32MultiArray to run my robot's motors.

The code is below:

motor = rospy.Publisher('encoder', Float32MultiArray, queue_size = 2)

while not rospy is shutdown():

    arg = Float32MultiArray()
    arg.layout.dim[0].label ="x"
    arg.layout.dim[0].size = 1
    arg.layout.dim[0].stride = 1

    arg.layout.dim[1].label ="y"
    arg.layout.dim[1].size = 1
    arg.layout.dim[1].stride = 1

    arg.layout.data_offset = 1
    arg.data = [100, 100]

    motor.publish(arg)

However, I have the error below:

TypeError: Invalid number of arguments, arg should be ['layout','data'] args are(0.0)

Could you please help me ?

Thank you in advance,

Shanika

2020-09-06 14:07:06 -0500 received badge  Popular Question (source)
2020-08-11 03:19:57 -0500 received badge  Famous Question (source)
2020-07-27 07:25:15 -0500 edited question ROS python stepper control and threading

ROS python stepper control and threading Hi, I am working on the control of my stepper motors for a differential drive

2020-07-27 07:20:50 -0500 edited question ROS python stepper control and threading

ROS python stepper control and threading Hi, I am working on the control of my stepper motors for a differential drive

2020-07-27 06:06:07 -0500 edited question ROS python stepper control and threading

ROS python stepper control and threading Hi, I am working on the control of my stepper motors for a differential drive

2020-07-27 06:05:49 -0500 edited question ROS python stepper control and threading

ROS python stepper control and threading Hi, I am working on the control of my stepper motors for a differential drive

2020-07-27 06:04:50 -0500 received badge  Associate Editor (source)
2020-07-27 06:04:50 -0500 edited question ROS python stepper control and threading

ROS python stepper control and threading Hi, I am working on the control of my stepper motors for a differential drive

2020-07-27 05:48:12 -0500 asked a question ROS python stepper control and threading

ROS python stepper control and threading Hi, I am working on the control of my stepper motors for a differential drive

2020-06-25 04:21:55 -0500 marked best answer [exploration_server_node-5] process has died

Hello,

I am trying to run the frontier_exploration on ROS Melodic for my turtlebot3 burger but I am facing an error and a few warnings :

[ INFO] [1592915203.801508707]: global_costmap: Using plugin "obstacle_layer"
[ INFO] [1592915203.805797584]: explore_costmap: Using plugin "explore_boundary"
terminate called after throwing an instance of 'pluginlib::LibraryLoadException'
  what():  According to the loaded plugin descriptions the class frontier_exploration::BoundedExploreLayer with base class type costmap_2d::Layer does not exist. Declared types are  costmap_2d::InflationLayer costmap_2d::ObstacleLayer costmap_2d::StaticLayer costmap_2d::VoxelLayer polygon_layer::PolygonLayer

[ INFO] [1592915203.807513999]:     Subscribed to Topics: scan
[ INFO] [1592915203.826659128]: global_costmap: Using plugin "inflation_layer"
[ WARN] [1592915203.864713435]: local_costmap: Pre-Hydro parameter "static_map" unused since "plugins" is provided
[ WARN] [1592915203.865053590]: local_costmap: Pre-Hydro parameter "map_type" unused since "plugins" is provided
[ INFO] [1592915203.865672566]: local_costmap: Using plugin "obstacle_layer"
[ INFO] [1592915203.873300348]:     Subscribed to Topics: scan
[ INFO] [1592915203.884410664]: local_costmap: Using plugin "inflation_layer"
[ INFO] [1592915203.910916229]: Created local_planner dwa_local_planner/DWAPlannerROS
[ INFO] [1592915203.913519360]: Sim period is set to 0.10

[exploration_server_node-5] process has died [pid 557, exit code -6, cmd /home/madhushi/catkin_ws/devel_isolated/exploration_server/lib/exploration_server/exploration_server_node __name:=exploration_server_node __log:=/home/x/.ros/log/42335398-b534-11ea-ad57-6c2b5954a7e6/exploration_server_node-5.log].
log file: /home/x/.ros/log/42335398-b534-11ea-ad57-6c2b5954a7e6/exploration_server_node-5*.log

In frontier_exploration.yaml:

plugins:
  - {name: static,           type: "costmap_2d::StaticLayer"}
  - {name: explore_boundary, type: "frontier_exploration::BoundedExploreLayer"}
  - {name: sensor,           type: "costmap_2d::ObstacleLayer"}
  - {name: inflation,        type: "costmap_2d::InflationLayer"}
2020-06-25 04:10:14 -0500 received badge  Citizen Patrol (source)
2020-06-25 03:13:10 -0500 edited question [exploration_server_node-5] process has died

[exploration_server_node-5] process has died Hello, I am trying to run the frontier_exploration on ROS Melodic for my t

2020-06-25 03:11:16 -0500 commented question [exploration_server_node-5] process has died

The issue was the plugin name that changed from frontier_exploration::BoundedExploreLayer to polygon_layer::PolygonLayer

2020-06-25 02:48:27 -0500 commented answer Pluginception: Build Factory

Hi, I have the same warning, about the class_loader. What does tc_ in the code corresponds to ?

2020-06-25 02:17:41 -0500 received badge  Popular Question (source)
2020-06-23 09:01:38 -0500 received badge  Notable Question (source)
2020-06-23 09:01:38 -0500 received badge  Popular Question (source)
2020-06-23 09:01:38 -0500 received badge  Famous Question (source)
2020-06-23 08:54:08 -0500 asked a question failed to call update polygone service

failed to call update polygone service Hello, I am trying to run the frontier_exploration on ROS Melodic for turtlebot3

2020-06-23 07:49:22 -0500 edited question [exploration_server_node-5] process has died

[exploration_server_node-5] process has died Hello, I am trying to run the frontier_exploration on ROS Melodic for my t

2020-06-23 07:48:30 -0500 asked a question [exploration_server_node-5] process has died

[exploration_server_node-5] process has died Hello, I am trying to run the frontier_exploration on ROS Melodic for my t

2020-06-23 07:21:36 -0500 commented question Rviz Status Warn: Scale of 0 in one of x/y/z

Hi, how did you fix this ?

2020-06-18 04:45:00 -0500 commented question Nothing to publish, octree is empty

Hello, I have the same problem. Did you solve this ?

2020-06-16 00:23:52 -0500 received badge  Famous Question (source)
2020-05-18 06:05:51 -0500 asked a question How to control a closed loop stepper motor with a RPI via ROS ?

How to control a closed loop stepper motor with a RPI via ROS ? Hello everyone, I would like to control my closed loop n

2020-03-20 18:47:52 -0500 received badge  Notable Question (source)
2020-03-05 05:58:42 -0500 received badge  Popular Question (source)
2020-03-05 05:58:42 -0500 received badge  Notable Question (source)
2020-02-11 15:47:41 -0500 received badge  Popular Question (source)
2020-02-11 15:47:41 -0500 received badge  Notable Question (source)
2019-10-27 07:23:26 -0500 received badge  Famous Question (source)
2019-10-23 14:15:49 -0500 received badge  Famous Question (source)
2019-10-07 05:43:22 -0500 received badge  Famous Question (source)
2019-09-29 17:29:01 -0500 received badge  Notable Question (source)
2019-09-27 03:36:07 -0500 received badge  Famous Question (source)
2019-08-17 08:20:08 -0500 received badge  Notable Question (source)
2019-08-14 17:04:34 -0500 received badge  Famous Question (source)