Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about rospy

Read more about rospy

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - rospy

How to define optional arguments in ROS service request

I want to define optional arguments in my ROS service request, the .srv file looks like this: abb_rapid_msgs/RobTarget pickpoint abb_rapid_msgs/RobTarget placepoint bool leftarm # Optional Parameters ...
test-img

Bilal

python

ros

rospy

Votes: 0

Answers: 1

Latest Answer

Unfortunately there is no support for optional fields in either service or message files; it has been proposed a couple of times, though. Instead, you can add another field to your srv to work as a bi...
test-img

BTables

error python code: AttributeError: 'bytes' object has no attribute 'encode'

I'm all trying to pass a code from python2.7 to 3.8 but I'm stuck on the following code: def serial_handle(self): # Serial initialization try: self.serial.reset_input_buffer() ...
test-img

andres jimenez

python

python-3.x

ros

rospy

Votes: 0

Answers: 1

Latest Answer

It looks like you have a byte string init_msg that you want to turn into a unicode string. You probably wanted to use decode instead of encode: rospy.loginfo( init_msg.decode('utf-8')[0:(len(init_msg)...
test-img

day

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved