Create3 sensing colors #640
Unanswered
fmorshed52
asked this question in
Questions
Replies: 1 comment 6 replies
-
I was on the wrong track. It is not get_ir_proximity. It is ir_intensity for what I need to do, which is to follow a line. I had brought this up here: #373. It was implemented. My problem is that I don't know how to get the values for the ir_intensity using python in the web playground.
does not work. I need to get the values in the cliff_intensity topic Example here: https://iroboteducation.github.io/create3_docs/api/hazards/#the-cliff_intensity-topic Any ideas? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How are you connecting to your Create 3?
Wi-Fi (ROS 2)
Computer(s) Model(s) and Operating System(s)
Windows XP
Which version of ROS 2 is installed on your computer?
Galactic
Which firmware version is installed on your robot?
Irrelevant to my question
Which RMW is your robot running?
I don't know
Does your robot have an assigned namespace? If so, please share.
No response
Is the robot connected to a network? If so, what is the network type?
Bluetooth
Are there multiple Create 3 robots connected to your network?
None
Is multicast enabled?
No
What is the Adapter Board's USB/BLE Toggle currently switched to?
Bluetooth (default)
Describe your question.
Does anyone have an example of Create3 code that can do the equivalent of Root's
line_following_events_3_areas.py example
where it has an event defined as below under root_robots Examples tab in the IDE?:
@event(robot.when_color_scanned, [ColorID.SKIP, ColorID.SKIP, ColorID.GREEN])
I believe it would need to use the cliff_sensor event or get_ir_proximity. Not sure.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions